firebase / firebase/firebase-android-sdk

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':generateCrashlyticsSymbolFileDebug'

Open
#6,700 1 comment 1 reaction 0 assignees View on GitHub
api: crashlytics type: feature request
Dominant language
Java
Stars
2.6k
Forks
710
Avg merge
2d 23h
Merged PRs (30d)
34

Description

Hello,

I initialy opened [6633](https://github.com/firebase/firebase-android-sdk/issues/6633) but was closed with link to another issue as duplicated, however its not duplicated and rootcause is very different.

so when I call "gradlew.bat assembleRelease uploadCrashlyticsSymbolFileRelease" I am having the errors described in the issue [6633](https://github.com/firebase/firebase-android-sdk/issues/6633).

I also tried opening a case 10331162 to help, and after trying CLI which had similar result we figured out its windows issue of long paths...
so when via CLI i UNSUCESSFULLY tried:
firebase crashlytics:symbols:upload --app=1:9332----8766:android:eed9b7067----95e69a43f c:\Qt\Projects\Builds\build-filmtoro-Android_Qt_6_8_2_Clang_arm64_v8a-Release\android-build-filmtoroMobile\build\intermediates\stripped_native_libs\release\stripReleaseDebugSymbols
- which obviously failed due to this bug of long path

I tried this instead:

![Image](https://github.com/user-attachments/assets/57c390c1-41d5-4f2c-8470-eb6789bd0701)

converion form long to short path was done via:
**cmd /c for %A in ("c:\Qt\Projects\Builds\build-filmtoro-Android_Qt_6_8_2_Clang_arm64_v8a-Release\android-build-filmtoroMobile\build\intermediates\stripped_native_libs\release\stripReleaseDebugSymbols") do @echo %~sA**

and for CLI all worked fine...

as far as I can use this workaround by specifying short path instead of long path in CLI (and hopefully somehow also via gradlew.bat or even build.gradle) then you could implement this check and convert to shortpath on build-tools side too... so everyone could benefit and prevent having this issue.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.