Skip to content
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

Open
suryaprskas opened this issue Jul 6, 2024 · 6 comments
Assignees

Comments

@suryaprskas
Copy link

suryaprskas commented Jul 6, 2024

[REQUIRED] Step 1: Describe your environment

  • Unity version: 2021.3.30f1_
  • Google Mobile Ads Unity plugin version: v9.1.1_____
  • Plugin installation method: _____ (Unity package manager, .unitypackage import)
  • Platform: _____ (iOS, Android, Unity Editor)
  • Platform OS version: _____ (eg iOS 10, Android 9)
  • Any specific devices issue occurs on: _____
  • Mediation ad networks used, and their versions: _____

[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

Screenshot (274)

@suryaprskas suryaprskas changed the title android apk buid error 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 Jul 6, 2024
@suryaprskas suryaprskas reopened this Jul 6, 2024
@chicotx56
Copy link

Make sure the gradle template looks like this:

org.gradle.jvmargs=-XmxJVM_HEAP_SIZEM
org.gradle.parallel=true
android.enableR8=MINIFY_WITH_R_EIGHT
unityStreamingAssets=STREAMING_ASSETS

Android Resolver Properties Start

android.useAndroidX=true
android.enableJetifier=true

Android Resolver Properties End

ADDITIONAL_PROPERTIES

@NVentimiglia
Copy link
Member

Different version of Unity use different Gradle versions. Removing old Assets/Plugins/Android/*.gradle may help with these kind of configuration issues.

@NVentimiglia NVentimiglia self-assigned this Jul 9, 2024
@suryaprskas
Copy link
Author

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
and also Latest Sdk for android 14 api level 34 please help me for solving this issue thank you

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).

@chicotx56
Copy link

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 and also Latest Sdk for android 14 api level 34 please help me for solving this issue thank you

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
You need to update your Unity 2021 to the latest version.

@NVentimiglia
Copy link
Member

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 and also Latest Sdk for android 14 api level 34 please help me for solving this issue thank you

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).

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.

@simmison
Copy link

simmison commented Jul 19, 2024

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_
Google Mobile Ads Unity plugin version: v9.1.1
Plugin installation method: Unity package manager, .unitypackage import
Platform: Android, Unity Editor

Platform OS version: Target API level 34 and Minimum API 8.0
Any specific devices issue occurs on: _____
Mediation ad networks used, and their versions: _____

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants