question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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 image

And these are the logs I get (here I tried to add a slash before the path to check if would fix the issue) image

The symbols are generated, I can download them separately and they are also uploaded to the Unity Dashboard image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mrichardscommented, Aug 18, 2022

@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.

1reaction
luan-lucascommented, Aug 18, 2022

I managed to get the upload to complete in UCB by separating the path and file name:

FILE_NAME=$(basename "$UNITY_PLAYER_PATH_DEBUG_SYMBOLS")
PATH_NAME=$(dirname "$UNITY_PLAYER_PATH_DEBUG_SYMBOLS")
cd $PATH_NAME
if firebase crashlytics:symbols:upload --app=$APP_ID "${FILE_NAME}" ; then
    		echo "Upload Android Symbols to Firebase with success."
	else
    		echo "Upload Android Symbols to Firebase failed."
fi
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found