This Is Regarding PlayStore Warning debug symbols
I Have Successfully Build Gradle After Adding Line To build.gradle(app)
android.buildTypes.release.ndk.debugSymbolLevel = 'FULL'
but Following The Instruction https://developer.android.com/studio/build/shrink-code When I Build An Apk, I Can't Find native-debug-symbols.zip File , So My Question Is How To Get The File native-debug-symbols.zip File
debugSymbolLevel. The type of debug metadata which will be packaged in the app bundle.
If you want to solve this warning error: This App Bundle contains native code, and you've not uploaded debug symbols. We recommend you upload a symbol file to make your crashes and ANRs easier to analyze and debug. Make sure also to install CMake This will happen if your gradle version is higher than 4.0 Place this code into your build.gradle file
"This App Bundle contains native code, and you've not uploaded debug symbols. We recommend you upload a symbol file to make your crashes and ANRs easier to analyze and debug."
Create the zip files with those folders In the Google Play Console, go to the App bundle explorer section. After your bundle shows up in the App bundle explorer, notices the three tabs "Details", "Downloads", and "Delivery". Click the "Download" tab. Under "Assets", find Native debug symbols.
... but there is no native-debug-symbols.zip file when I run flutter build appbundle. @RakaAlrian Well, there shouldn't be.. If you run the flutter build appbundle command to build your project then native debug symbols are bundled with the resulting app.
The file is automatically included in your signed bundle (the .aab file) if you have managed to have the new Gradle, NDK Settings, and CMAKE installed and properly configured in your project. As well as the Gradle settings as discussed in many other comments. So you don't need to upload it manually.
To check if the obfuscation file was added prior to launching it on Google Play Store, create a new signed bundle .aab file. In Android Studio, when the file is created there will be a small pop-up that looks like this. Click the analyze the app button.
Then you will see it here:
If you see it there, you can upload it to PlayStore and you're good to go.
Found the native-debug-symbols.zip, it generated after I use this step : Build -> Generate Signed Bundle / APK -> APK.
Then it created on folder build->outputs->native-debug-symbols
I don't know to be sure what cause that, but what I tried is change the code
from
android.defaultConfig.ndk.debugSymbolLevel = 'FULL'
to
android.buildTypes.release.ndk.debugSymbolLevel = 'FULL'
Also I double check wether NDK is downloaded into my SDK.
And also there is android.ndkVersion '22.1.7171670'
generated inside my build.gradle
And File -> Project Structure -> Download Android NDK if not downloaded.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With