I am trying to upload symbols files to crashlytics using this command:
firebase crashlytics:symbols:upload --app="ANDROID_APP_ID" /home/user/debuginfo/testApp/1.2.0+85
But i got this error:
i Generating symbols for /home/user/debuginfo/testApp/1.2.0+85
⚠ An unknown error occurred
Error: java command failed with args: -jar,/home/user/.cache/firebase/crashlytics/buildtools/crashlytics-buildtools-2.9.2.jar,-symbolGenerator,breakpad,-symbolFileCacheDir,/tmp/crashlytics-e00e9d25-558c-410a-b516-03fbb119fd2b/nativeSymbols/ANDROID_APP_ID/breakpad,-verbose,-generateNativeSymbols,-unstrippedLibrary,/home/user/debuginfo/testApp/1.2.0+85,-clientName,firebase-cli;crashlytics-buildtools
The problem is firebase tool did not find java command. so here is how i resolved the problem:
By updating environment variable in .zshrc
file with these lines
export JAVA_HOME="/snap/android-studio/current/android-studio/jre"
export PATH="$PATH:/snap/android-studio/current/android-studio/jre/bin"
then i run this command:
source ~/.zshrc
after that firebase crashlytics:symbols:upload
run without error.
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