[Bug] Failed to upload android symbols
See original GitHub issue[REQUIRED] Please fill in the following fields:
- Unity editor version: 2020.3.34f1
- Firebase Unity SDK version: 9.0.0
- Source you installed the SDK: .tgz with PackageManager
- Problematic Firebase Component: Crashlytics
- Other Firebase Components in use: many other
- Additional SDKs you are using: not relevant
- Platform you are using the Unity editor on: Windows
- Platform you are targeting: Android
- Scripting Runtime: IL2CPP
- Pre-built SDK from the website or open-source from this repo: Google Archive
[REQUIRED] Please describe the issue here:
Firebase is unable to see the symbols, even though they are there (it’s adding c: to the path for some reason):
java.io.IOException: Unstripped native library path does not exist: C:BUILD_PATH/p\.build\last\android-debug\Debug Android Concept 2-0.18.0-v826.symbols.zip. Either specify the correct unstrippedNativeLibsDir or disable Crashlytics symbol uploading.
Steps to reproduce:
Here’s the script I’m using with Unity Cloud Build
#!/bin/bash
echo "Installing Firebase Tools"
npm install -g firebase-tools
echo "Uploading Android Symbols to Firebase..."
if firebase crashlytics:symbols:upload --app=1:[REMOVED APP ID] "${UNITY_PLAYER_PATH_DEBUG_SYMBOLS}" ; then
echo "Upload Android Symbols to Firebase with success"
else
echo "Upload Android Symbols to Firebase failed"
fi
This is what the environment variable returns
And these are the logs I get (here I tried to add a slash before the path to check if would fix the issue)
The symbols are generated, I can download them separately and they are also uploaded to the Unity Dashboard
Issue Analytics
- State:
- Created a year ago
- Comments:12 (3 by maintainers)
Top Results From Across the Web
Uploading android symbols files to crashlytics not working ...
The problem is firebase tool did not find java command. so here is how i resolved the problem: By updating environment variable in...
Read more >Solved Playstore Error This app contain native code you have ...
Solved Playstore Error This app contain native code you have not upload debug symbols | this app bundle contains java/kotlin code.
Read more >Android symbols.zip is too big
I have the option "Create symbols.zip" enabled but the generated zip size is too big > 400MB whereas Google Console accepts only up...
Read more >Upload Android NDK symbols - BugSnag CLI
Upload Android NDK symbols. For apps that use the NDK, native stacktraces from C or C++ code consist of a list of addresses...
Read more >CI (Jenkins via Windows Node) Build stuck at uploading ...
4f1 ) seems to be unable to upload symbols. We provide the command line the user and password for a valid unity license...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@luan-lucas Thank you! That seems like an effective short-term workaround, and gives me some hints on how to modify the Firebase CLI to work, even without access to a UCB instance.
I managed to get the upload to complete in UCB by separating the path and file name: