Closed marcio-pessoa closed 2 years ago
Hi dears...
I fixed the issue following instructions found on https://developer.android.com/studio/build/multidex.
I just added multiDexEnabled = true
on res://android/build/build.gradle
, like this:
android {
defaultConfig {
...
multiDexEnabled = true
...
}
}
I fixed by the right way?
I would suggest just cleaning the build with ./gradlew clean
inside the android/build
directory.
Thanks @Shin-NiL
When I ran ./gradlew clean
:
BUILD SUCCESSFUL in 1s
2 actionable tasks: 1 executed, 1 up-to-date
But when I try to export to Android I got the same issue.
I did not reproduce this with this plugin, but I did get this when building the later Android app. To resolve I had to add multiDexEnabled = true, such as @marcio-pessoa posted. I also had to add a dependency to androidx.multidex:multidex
dependencies { ... implementation "androidx.multidex:multidex:latest.release" }
Edit: androidx.multidex was required because the SDK versions were low enough. I think it was the value of minSdk, which was 19. Edit: The resolved version of androidx.multidex:multidex:latest.release is currently either 2.0.0 or 2.0.1.
I'm getting this error with the latest merge... I'll add the multidex instruction on the README, thanks guys.
Good job, @Shin-NiL !
Godot version: 3.4.4
AdMob Plugin version: 6.0.0
Issue description: I updated AdMob Plugin version 5.1.0 to version 6.0.0. After that I got the following error when trying to export to Android: