Hi,
I see that the docs at
https://docs.coronalabs.com/native/android/index.html
say “libs/ — This is where third-party (Corona) .jar plugins that your app relies upon should go.”
I didn’t see an existing /lib/ folder in my copy of the project template (is that correct, there is no /lib/ folder there?), so I created one and ended up with this full path
/Users/jm/Documents/TEST300/App/android/app/libs/
TEST300 is where I"m storing this project
I open Android Studio and select ‘open existing android studio project’ and select /android/ from the above path.
I do build > build apk to verify that when this project is untouched that it builds ok. No errors - it says build successful.
I dropped a Corona 3rd party plugin .jar into that /Users/jm/Documents/TEST300/App/android/app/libs/ folder.
in Android studio I then do a build > build apk, but get this error now when building:
Information:Gradle tasks [:app:assembleDebug, :plugin:assembleDebug]
Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lplugin/library/BuildConfig;
Information:BUILD FAILED
I also tried doing build > clean project and then build > build apk but get the same error
Do the above steps work for you? Am I doing something wrong? Is there a change I need to make to the Gradle Script? Or is the debug keystore the problem?
Thanks so much.
John