- Home /
Error uploading proguard mapping file
I'm working on an android game using Unity 2019.4.25f1. I built the app bundle with minify option set to 'Proguard'. This generates a mapping file, but when I try to upload this mapping file on the google play console, I get an error saying 'Couldn't upload. Try again'
To check whether there was some issue in the google play console site itself, I built an app using android studio and tried uploading that mapping file and it worked. So, there is some issue with the mapping file generated by Unity.
Also, I noticed that the mapping file generated by Unity is much smaller than the one generated by Android Studio.
# compiler: R8
# compiler_version: 1.4.77
# min_api: 19
com.google.androidgamesdk.ChoreographerCallback$1 -> com.google.androidgamesdk.a:
com.google.androidgamesdk.SwappyDisplayManager$1 -> com.google.androidgamesdk.b:
com.google.androidgamesdk.SwappyDisplayManager$a ->
com.google.androidgamesdk.SwappyDisplayManager$a:
com.google.androidgamesdk.SwappyDisplayManager b -> d
java.util.concurrent.locks.Condition d -> c
java.util.concurrent.locks.Lock c -> b
This is the entirety of the mapping file generated by Unity. This seems wrong to me. Would really appreciate any help solving this.
Answer by theavijitsinha · Oct 14, 2021 at 03:30 PM
Found the solution for this.
Unchecking Use R8 in
Project Settings > Player > Publishing Settings > Minify fixed it for me.
Your answer
Follow this Question
Related Questions
Unity Attach to Android Build with ADB 1 Answer
Cannot build for Android 2 Answers
Android build failed error 1 Answer
After installing the .apk , the App Icon appears twice 1 Answer
Argument Exception when building for Android using IL2CPP 0 Answers