firebase 上传Android符号文件到Crashlytics在Mac中不工作

hpxqektj  于 2023-03-09  发布在  Android
关注(0)|答案(1)|浏览(179)

I am trying to upload symbols files to crashlytics using this command on mac:

firebase crashlytics:symbols:upload --app="ANDROID_APP_ID" /Users/macbook/debuginfo/testApp/1.2.0+141

But i got this error:
java.io.IOException: Breakpad symbol generation failed (exit=126), see STDERR at com.google.firebase.crashlytics.buildtools.ndk.internal.breakpad.BreakpadSymbolGenerator.generateSymbols(BreakpadSymbolGenerator.java:133) at com.google.firebase.crashlytics.buildtools.Buildtools.generateNativeSymbolFiles(Buildtools.java:273) at com.google.firebase.crashlytics.buildtools.CommandLineHelper.executeGenerateSymbols(CommandLineHelper.java:185) at com.google.firebase.crashlytics.buildtools.CommandLineHelper.executeCommand(CommandLineHelper.java:118) at com.google.firebase.crashlytics.buildtools.CommandLineHelper.main(CommandLineHelper.java:65) at com.google.firebase.crashlytics.buildtools.Buildtools.main(Buildtools.java:111)
Error: java command failed with args: -jar,/Users/macbook/.cache/firebase/crashlytics/buildtools/crashlytics-buildtools-2.9.2.jar,-symbolGenerator,breakpad,-symbolFileCacheDir,/tmp/crashlytics-32c807e8-10a3-49c0-a833-0f6da19b9dc6/nativeSymbols/1-211607324153-android-5b9e71e339cdc91b0fe928/breakpad,-verbose,-generateNativeSymbols,-unstrippedLibrary,/Users/macbook/debuginfo/testApp/1.2.0+141,-clientName,firebase-cli;crashlytics-buildtools

juzqafwq

juzqafwq1#

我发现了这个问题,这是因为在我把我所有的项目目录从Ubuntu机器移动到我的新Mac机器后,我在android/build.gradle文件中将crashlytics的依赖性从2.9.2升级到2.9.4

dependencies {
   ...
   classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.4'
}

因此,我通过删除.crashlytics目录解决了问题,然后再次运行这些命令:

flutter clean
flutter pub get -v
flutter build apk -v --obfuscate --split-debug-info=/Users/macbook/debuginfo/testApp/1.2.0+141
firebase crashlytics:symbols:upload --app="ANDROID_APP_ID" /Users/macbook/debuginfo/testApp/1.2.0+141

相关问题