Hello Everyone,
I'm facing an error when generating the Android app with MABS 8.0 (with MABS 7.2 it work fine but unable to upload it to the store since it's required Android 12).
Then I went through the full errors log, also did some research, and found its may because the Barcode Scanner Plugin is not compatible with MABS 8.0 what is Barcode Plugin (supported by OutSystems) is being compatible. You can see details of the error log in the attachment.
Then I decided to switch to use Barcode Plugin instead of Barcode Scanner Plugin in the DEV environment for trying purposes first but unfortunately that I'm facing maybe the same issue as the screenshot below.
Thanks
Best,
Luan Cu
Hi Luan Cu,
I doubt you're using that official plugin.
From the logs it seems you're using Barcode Scanner Plugin. If you're using this, please note that it has a dependency to https://www.npmjs.com/package/phonegap-plugin-barcodescanner and that is a deprecated plugin. So clearly, it's not recommended to use that one.
Please use the official one, and I'm almost sure you won't have to deal this problem anymore. Here's the link again Barcode Plugin for quick reference.
Are you using the officially supported plugin for Barcode?https://www.outsystems.com/forge/component-overview/1403/barcode-plugin
Please suggest if you're using any other plugin.
Hi,
Yes, I’m using that plugin in dev but still facing an error as screenshot added.
Hi Ravi,
Thanks for your advice but as I mentioned that I'm switched to the official plugin in dev which is the latest version but facing the attachment error message and attached build logs previously is from Production.
Any suggestion?
Hi Luan, Sorry for the confusion.
Can you share the latest log file from the DEV env where you're using the official plugin?
Pls help to take a look at the build log attached.
You might be using the new plugin, but you also need to make sure the existing dependencies of that deprecated plugin are all removed from your application, and its dependencies. The best way would need to check the deprecated module from service center and find its consumers.
Above observation is based on these entries in the log:
[2022-12-29T09:12:50.164Z] [VERBOSE] [Build] FAILURE: Build completed with 2 failures.[2022-12-29T09:12:50.164Z] [VERBOSE] [Build] 1: Task failed with an exception.[2022-12-29T09:12:50.164Z] [VERBOSE] [Build] -----------[2022-12-29T09:12:50.164Z] [VERBOSE] [Build] * Where:[2022-12-29T09:12:50.165Z] [VERBOSE] [Build] Script 'source/platforms/android/phonegap-plugin-barcodescanner/dev-barcodescanner.gradle' line: 9[2022-12-29T09:12:50.165Z] [VERBOSE] [Build] * What went wrong:[2022-12-29T09:12:50.165Z] [VERBOSE] [Build] A problem occurred evaluating script.[2022-12-29T09:12:50.165Z] [VERBOSE] [Build] > Could not find method compile() for arguments [{name=barcodescanner-release-2.1.5, ext=aar}] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
I'm quite sure that all the dependencies of deprecated plugin has been removed as you can see the screenshot. There is unticked module already
It is still possible to have an indirect dependency. Can you check back tracing or verify with all modules your app is dependent upon?
Or let me know if we can have an online session to go through all modules for verification about this. I'll be available anytime after an hour.
Sorry Ravi, there was indirect dependency have it so still throw error. It's okay now.
Thank you so much for your help.
Hopefully won't be facing same issue in Production after deployment next week.