(Solved) How to change option setting 'android.bundle.enableUncompressedNativeLibs=false' in gradle
Asked Answered
B

2

1

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.

Belletrist answered 23/12, 2023 at 20:22 Comment(0)
B
0

For me, this was due to the asset folder being in two different places than the plugins folder. This problem was caused by installing admob in another project after I created my project with the package and gathered it under a single folder. the solution was as simple as deleting the unused plugin folder.

don’t forget to do this afterwards;

Belletrist answered 18/6, 2023 at 19:18 Comment(0)
S
0

Hi, I fixed this by installing a lower version of the Google Ads SDK. I initially installed 8.6 and I had this error and other errors too.
So I downgraded to 7.4.1 and unchecked Google IOS Resolver.dll.mdb because I was just building for android but that step may not be necessary.

My Unity version is 2022.3.16f1

It worked. No errors. I was also able to upload to Google Play without problems.2023-12-22T23:00:00Z

Add images

Selfhelp answered 23/12, 2023 at 14:1 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.