I tried to get apk after admob integration for android. I ran into the “Enable R8” issue. I activated File > Project Settings > Player > Publishing Settings , Custom base gradle template option. Then I changed the line “classpath ‘com.android.tools.build:gradle:4.0.1’” to “classpath ‘com.android.tools.build:gradle:3.4.1’” in the file “baseProjectTemplate.gradle”. I was able to extract apk without an error.
Enable R8 problem is ;
WARNING: The option setting ‘android.enableR8=false’ is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
Then i tried to print aab and got an error.
warning ; > Configure project :launcher
WARNING: The option setting ‘android.bundle.enableUncompressedNativeLibs=false’ is experimental and unsupported.
The current default is ‘true’.
For the solution, I looked at the topics opened in the forum and even scanned the internet, but as of now, I can’t get aab output in 2021.3.16f1 version.