Playstore error: “ App Bundle accommodates native code, and also you’ve not uploaded debug symbols ”.
For those who get this error when importing your app to the Google Play Console, you’ll want to add a debug image to your app.
So as to add debug symbols to the next tutorial, you will need to use the Android Gradle Plugin model 4.1 and later.
1. Set up NDK and CMake in Android Studio
– Within the challenge that opens, click on on “ Instruments > SDK Supervisor ”.
– SDK Instruments ” tab.
– Choose and tick NDK (Facet by facet) and CMake.
– Click on the “OK” button, a dialog field will let you know how a lot area the NDK package deal is utilizing on the disk.
– Then click on “OK”.
– When the set up is full, click on the “End” button.
– Your challenge robotically syncs the construct recordsdata and performs the construct. Resolve any errors that happen.
2. Examine NDK Model
– Return to “ Instruments > SDK Supervisor > SDK Instruments ”.
– Examine “ Present Bundle Particulars ” on the backside proper of the window.
– Then have a look at the put in model.
3. Generate debug image in construct.gradle
So as to add debug symbols to your utility, add the next code to the “ app > construct.gradle ” file.
ndkVersion “24.0.8215888” //ndk model you’re utilizing
//debugSymbolLevel ‘SYMBOL_TABLE ‘
If the ensuing file is simply too massive, substitute debugSymbolLevel ‘FULL’ with debugSymbolLevel ‘SYMBOL_TABLE’.
The debug image file has a most restrict of 300 MB.
4. Construct Bundle/APK
Then in your challenge in Android Studio, click on “ Construct > Generate Signed Bundle/APK… ”.
For those who select to compile your utility within the format:
– APK, debug image recordsdata shall be created at “appbuildoutputsnative-debug-symbolsrelease native-debug-symbols.zip ”. Add the file to the Google Play Console.
– Android app Bundle, a debug image file shall be created contained in the “ app-release.aab ” file. You now not have to add a separate debug image file.