The option ‘android.enableR8’ is deprecated and should not be used anymore.
It will be removed in a future version of the Android Gradle plugin, and will no longer allow you to disable R8.
Task :launcher:processDebugManifest
…Temp\gradleOut\launcher\src\main\AndroidManifest.xml:4:2-98 Warning:
uses-permission#android.permission.READ_EXTERNAL_STORAGE was tagged at AndroidManifest.xml:4 to replace another declaration but no other declaration present
Hi, I am not sure whether you have same issue as mine, this is the error I get in Console:
'> Configure project :launcher
WARNING: The option setting ‘android.enableR8=false’ is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8’
But I am able to resolve it and build my apk by follow this 1 (the website is in Chinese),
here is the rough translate:
Tick “Custom Base Gradle Template” in [Project Setting] → [Player]
Find “baseProjectTemplate.gradle” in your [Project File] → Assets/Plugins/Android
change: ‘com.android.tools.build:gradle:3.6.0’ to ‘com.android.tools.build:gradle:3.4.0’
In my case, building for the Oculus Quest 2, it helped to switch from il2cpp to mono, build and than swtich again and it was working perfectly.
Unity 2020.3.18f1.
For the error:
WARNING: The option setting ‘android.enableR8=false’ is deprecated. It will be removed in version 5.0 of the Android Gradle plugin. You will no longer be able to disable R8’
This happen for me if I copy a project.
→ Deinstall ARCore Package and update it again. For me this worked.
I’ve tried to fix this error for 5 hours. The solution was for me to delete library folder completely, delete all google plugins + all other plugins that can create problems if dublicated/edited etc. Then i just reinstalled everything, after compiling, resolutions, and entering my keystone password… build was done on first try.
I had the same problem, I tried some solutions above and did not work for me. I gave up and I turned off my computer. Next day I tried to build and it worked like nothing was wrong.
If you have AppMetrica, AppsFlyer or Facebook SDK in project, just remove folder Plugin. After this, Unity automaticaly repair dependenses. Or use Assets > External Dependancy Manager > Android Resolver > Force Resolve.
I tried to solve this problem for about 3-4 days but no results,
but finally. HERE IS MY SOLUTION
I installed new Version of unity 2021 LTS.
Installed Android Studio
Installed sdk 33 via android studio
Went to Preferences and Unchecked Android SDK Tools Installed By Unity. And Replaced path of installed sdk in unity to path of installed sdk in step 3.
same issue:
Unity 2020.3.31
Audience Network Sdk 6.4.0
Fix:
I just imported admob sdk 8.3.0, resolved the dependencies, then built and error was gone, then I deleted admob sdk because i’m not using it. Now there are no errors in the build.