Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App Bundle contains native code, I Can't Find debug symbols .zip

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

like image 267
DevDasTour Avatar asked Mar 12 '21 07:03

DevDasTour


People also ask

What is debugSymbolLevel?

debugSymbolLevel. The type of debug metadata which will be packaged in the app bundle.

How to solve this error “this app bundle contains native code”?

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

Do I need to add debug symbols to my app bundle?

"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."

How to create native debug symbols for Google Play Games?

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.

Is there a native-debug-symbols ZIP file in flutter?

... 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.


2 Answers

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.

analyze the app button

Then you will see it here: debug symbols file

If you see it there, you can upload it to PlayStore and you're good to go.

like image 86
The Fluffy T Rex Avatar answered Oct 20 '22 13:10

The Fluffy T Rex


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.

like image 3
Muhammad Kamal Avatar answered Oct 20 '22 12:10

Muhammad Kamal