问题
Firebase Crashlytics symbol upload not working with android app bundle (AAB)
The setup was done following the instructions here: https://firebase.google.com/docs/crashlytics/get-started#android
AndroidManifest.xml
:
<meta-data android:name="firebase_crashlytics_collection_enabled"
android:value="false" />
build.gradle
:
implementation 'com.crashlytics.sdk.android:crashlytics-ndk:2.0.5'
for crashlytics ndk support
Fabric.with(Fabric.Builder(this)
.kits(Crashlytics(), CrashlyticsNdk())
.build())
Expect the native crashes to show up on crashlytics. Do not see any native crashes.
回答1:
As suggested in the comments, you need to enable uncompressed native libs in order to get symbolication of native crashes working in Firebase Crashlytics.
Add this to your app's gradle.properties
:
android.bundle.enableUncompressedNativeLibs=false
来源:https://stackoverflow.com/questions/55423548/crashlytics-missing-ndk-symbols-with-android-app-bundle