Closed muneebattamindravel closed 7 months ago
packaging { resources { pickFirst += "META-INF/kotlinx_coroutines_core.version" } }
under android {But I get another error now:
[SafeDK-ERROR] Android variants not detected. Please make sure you place the directive: apply plugin: 'applovin' after you apply the Android plugin in your build.gradle file
I was able to get the build working by doing the following (but not sure if this is the correct approach).
I did this on a mac and building with IL2CPP (not mono) in Unity:
Then go to unityLibrary and the launcher folders and open "build.gradle" files.
In both of these files, in the packagingOptions add the following line: "exclude 'META-INF/kotlinx_coroutines_core.version'"
Doing this, started created my Android builds and build working fine on device.
However, this issue should be resolved at the plugin level.
Hi @muneebattamindravel and @marnelle1 this seems to be an issue with the latest Google AdMob SDK. Are you using v22.4.0.0 of the AdMob adapter? If you are, could you try using v22.3.0.0 instead to see if this resolves the issue?
Hi @NanaAmoah ! Thanks for feedback. How can I downgrade the admob version?
@NanaAmoah I tried to delete admob and it builds fine, but I need admob anyway
You can downgrade the adapter by updating the Android version in the MaxSdk/Mediation/Google/Editor/Dependencies.xml
file to 22.3.0.0
.
You can downgrade the adapter by updating the iOS version in the
MaxSdk/Mediation/Google/Editor/Dependencies.xml
file to22.3.0.0
.
Thanks! That works great
@NanaAmoah Excuse me, this issue is not resolved. I'm using Unity 2022.3.11f1, AppLovin Intergration Manager 5.11.3. After install Facebook (android_6.16.0.2_ios_6.14.0.0), I meet this issue.
Hi @farmme-tienld, are you using AdMob in your app? Can you share a screenshot of your Unity integration manager and the build.gradle file in your exported Android project?
this issue still persists - any help / update on the thread pls
Hi @adizhavo Can you share a screenshot of your Unity integration manager and the build.gradle file in your exported Android project?
MAX Plugin Version
5.11.3
Unity Version
2022.3.1f1
Device/Platform Info
Android
Current Behavior
I simply added the Applovin MAX plugin "AppLovin-MAX-Unity-Plugin-5.11.3-Android-11.11.3-iOS-11.11.3.unitypackage"
Opened the Integration Manager and added the SDK Key
Built for Android
I get the following error:
stderr[ Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':unityLibrary:mergeReleaseJavaResource'.
Try: 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.
Get more help at https://help.gradle.org
Expected Behavior
The APK should be build without any issue.
How to Reproduce
I simply added the Applovin MAX plugin "AppLovin-MAX-Unity-Plugin-5.11.3-Android-11.11.3-iOS-11.11.3.unitypackage"
Opened the Integration Manager and added the SDK Key
Built for Android
Additional Info
No response