-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android apk buid error > Configure project :launcher WARNING: The option setting 'android.enableR8=true' is deprecated. It will be removed in version 5.0 of the Android Gradle plugin. You will no longer be able to disable R8 #3437
Comments
Make sure the gradle template looks like this: org.gradle.jvmargs=-XmxJVM_HEAP_SIZEM Android Resolver Properties Startandroid.useAndroidX=true Android Resolver Properties EndADDITIONAL_PROPERTIES |
Different version of Unity use different Gradle versions. Removing old |
ok after build and publish to google i have this message appear I am using latest IAP and Google Mobile Ads Unity plugin version: v9.1.1 Google Play Core (com.google.android.play:core) has added this note for SDK version 1.10.0: Update your Play Core Maven dependency to an Android 14 compatible version! Your current Play Core library is incompatible with targetSdkVersion 34 (Android 14), which introduces a backwards-incompatible change to broadcast receivers to improve user security. As a reminder, from August 31, Google Play requires all new app releases to target Android 14. Update to the latest Play Core library version dependency to avoid app crashes: https://developer.android.com/guide/playcore#playcore-migration To release new versions containing this SDK version to production or open testing, upgrade to a newer version by 6 October 2024 00:00 (UTC). |
This issue does not occur in Unity 2021.3.39f1 |
Thanks for the update. It looks like there is an incompatibility when combining Unity 2021.3.30f, Mobile Ads 9.1.1, and Google Play 1.10.0. I will look into this. |
Unfortunately, I have the exact same problem. I get rid of the error message ("WARNING: The option setting 'android.enableR8=true' is deprecated.") by commenting out the line "android.enableR8=MINIFY_WITH_R_EIGHT" in the gradleTemplate.properties file. But now I receive the following error message: "WARNING:: Using flatDir should be avoided because it doesn't support any meta-data formats. Does anyone have a solution on how to get my APK compiled? Unity version: 2021.3.40f1_ |
[REQUIRED] Step 1: Describe your environment
[REQUIRED] Step 2: Describe the problem
i got this error always when i try to build for android this is my build setting i am using latest version of Google Mobile Ads Unity plugin [Please Help Me ] i am using 2021.3.30f1_ unity editor
i also try to remove this line [ android.enableR8=MINIFY_WITH_R_EIGHT ] from gradleTemplate but when i try to build again unity generate this file again and again build failed with this error message
android apk buid error > Configure project :launcher WARNING: The option setting 'android.enableR8=true' is deprecated. It will be removed in version 5.0 of the Android Gradle plugin. You will no longer be able to disable R8
The text was updated successfully, but these errors were encountered: