Issue in android build generation
Question

Hello everyone,

I am experiencing an issue when generating the build for Android with version of MABS 8.1. If anyone could help me to figure out what the cause might be, 

Android error log:

[2022-07-19T14:24:41.581Z] [ERROR] [Build] Reason: Couldn't generate your app. If the problem persists, check our documentation for more information.

[2022-07-19T14:24:41.581Z] [ERROR] [Build] Additional information:

[2022-07-19T14:24:41.582Z] [ERROR] [Build] FAILURE: Build completed with 2 failures.

[2022-07-19T14:24:41.582Z] [ERROR] [Build] 1: Task failed with an exception.

[2022-07-19T14:24:41.582Z] [ERROR] [Build] -----------

[2022-07-19T14:24:41.582Z] [ERROR] [Build] * Where:

[2022-07-19T14:24:41.582Z] [ERROR] [Build] Script 'source/platforms/android/cordova-plugin-jumio-mobilesdk/sonali-plugin.gradle' line: 2

[2022-07-19T14:24:41.582Z] [ERROR] [Build] * What went wrong:

[2022-07-19T14:24:41.582Z] [ERROR] [Build] A problem occurred evaluating script.

[2022-07-19T14:24:41.582Z] [ERROR] [Build] > Failed to apply plugin 'kotlin-parcelize'.

[2022-07-19T14:24:41.582Z] [ERROR] [Build]    > :app: 'kotlin-parcelize' can't be applied together with 'kotlin-android-extensions'

[2022-07-19T14:24:41.582Z] [ERROR] [Build] * Try:

[2022-07-19T14:24:41.582Z] [ERROR] [Build] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

[2022-07-19T14:24:41.582Z] [ERROR] [Build] ==============================================================================

[2022-07-19T14:24:41.582Z] [ERROR] [Build] 2: Task failed with an exception.

[2022-07-19T14:24:41.582Z] [ERROR] [Build] -----------

[2022-07-19T14:24:41.582Z] [ERROR] [Build] * What went wrong:

[2022-07-19T14:24:41.582Z] [ERROR] [Build] A problem occurred configuring project ':app'.

[2022-07-19T14:24:41.582Z] [ERROR] [Build] > compileSdkVersion is not specified. Please add it to build.gradle

[2022-07-19T14:24:41.582Z] [ERROR] [Build] * Try:

[2022-07-19T14:24:41.582Z] [ERROR] [Build] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

[2022-07-19T14:24:41.582Z] [ERROR] [Build] ==============================================================================

[2022-07-19T14:24:41.582Z] [ERROR] [Build] * Get more help at https://help.gradle.org

[2022-07-19T14:24:41.582Z] [ERROR] [Build] BUILD FAILED in 33s

[2022-07-19T14:24:41.582Z] [ERROR] [Build] Command failed with exit code 1: source/platforms/android/gradlew cdvBuildDebug -b source/platforms/android/build.gradle --parallel

[2022-07-19T14:24:41.582Z] [ERROR] [Build] -- ^ --

[2022-07-19T14:24:41.582Z] [INFO] [Build] Application was not successfully generated!

[2022-07-19T14:24:42.085Z] [INFO] [Build] Execution time: 134994 ms


Thanks in advance

Champion

Hi,


I think this is the problem

[2022-07-19T14:24:41.582Z] [ERROR] [Build] > Failed to apply plugin 'kotlin-parcelize'.

[2022-07-19T14:24:41.582Z] [ERROR] [Build]    > :app: 'kotlin-parcelize' can't be applied together with 'kotlin-android-extensions'


You need to check the plugin which one is using this

Hello Toto,

Thank you so much for your response,

The plugin that I am using is JUMIO which will scan the documents. I have noticed one thing that i am using camera plugin for some other features in my application. If I remove the camera plugin, the build will be generated and the plugin was working as expected, but with the camera plugin it will not and it will throw an error.  

Can anyone advise me to how I resolve this issue!


Regards,

Sonali

Champion

Hi Sonali,


My suggestion is this :

Because you cannot change the JUMIO plugin, then change the camera plugin, my recommendation is use camera plugin based on HTML5 and not cordova. I think this will solve your problem.

Let me know if this works


Regards,

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.