Reputation: 1071
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
Upvotes: 4
Views: 2291
Reputation: 11
I had the same issue. In my case, after I opened firebase CLI as administrator (right click=> "Run as administrator) it fixed the problem.
Upvotes: 1
Reputation: 1071
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.
Upvotes: 7