googleads / googleads-mobile-unity

Official Unity Plugin for the Google Mobile Ads SDK
https://developers.google.com/admob/unity
Apache License 2.0
1.34k stars 1.09k forks source link

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 1 week ago

suryaprskas commented 1 week ago

[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

Screenshot (274)

chicotx56 commented 1 week ago

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 commented 1 week ago

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

suryaprskas commented 6 days ago

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 commented 6 days ago

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 commented 5 days ago

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.