Skip to content

Conversation

@snazhmudinov
Copy link
Contributor

@snazhmudinov snazhmudinov commented Sep 26, 2023

When trying to upload the proguard mapping file with Firebase CLI, we get an error:

[CRASHLYTICS LOG DEBUG] Extracting mappingFileId from resource file: ~/src/project/android_res.xml
java.lang.IllegalArgumentException: Resource file does not contain a valid mapping file id: ~/src/project/android_res.xml

According to the documentation we need to:

  1. Generate unique mapping file ID in the xml file (the one generated by genrule inside crashlytics_android_library)
  2. Upload the proguard mapping file and associate it with the mapping file ID.

CLI docs: https://firebase.google.com/docs/cli#crashlytics-commands

When trying to upload the proguard mapping file with Firebase CLI, we get an error:

```
[CRASHLYTICS LOG DEBUG] Extracting mappingFileId from resource file: /Users/sherozn/src/client-android/android_res.xml
java.lang.IllegalArgumentException: Resource file does not contain a valid mapping file id: <path to the xml file>
```

According to the documentation we need to:
1. Generate unique mapping file ID in the xml file
2. Upload the proguard mapping file and associate it with the mapping file ID.

CLI docs: https://firebase.google.com/docs/cli#crashlytics-commands
pswaminathan added a commit to pswaminathan/tools_android that referenced this pull request Oct 31, 2024
@ahumesky ahumesky merged commit a084f6d into bazelbuild:master Nov 4, 2024
@ahumesky
Copy link
Collaborator

ahumesky commented Nov 4, 2024

thank you!

@snazhmudinov snazhmudinov deleted the patch-1 branch November 4, 2024 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants