-
Notifications
You must be signed in to change notification settings - Fork 606
Using Android builtin resources will break the BuildId and crash the App #1935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hmm, do you happen to have a reproduction of this handy that you could upload and send over a link to? We would love to be able to test this out ourselves, looks like a strange error. Alternatively, could you specify a bit more the steps to reproduce this -- are you basically just integrating Crashlytics in a blank app, and then adding the |
Thanks for the prompt response. https://github.com/worldsnas/FirebaseCrash Please note that if I add a round icon the issue will be resolved. and as I mentioned earlier the issue exists because android does not return an id for the |
The issue is due to the way Crashlytics identifies the package name to be used when retrieving string resources, in a way that supports the old We'll need to consider if it is worth dropping support for that option, though in the meantime we can make a fix that at least avoids attempting to use "android" as the package name, which is what is happening in your case. |
Thanks for escalating the issue @mrichards. |
@worldsnas The resource packages aren't renamed when using The accepted answer to this SO post, and the linked Google Forum thread, have some additional information. |
The fix will go live with our next release (date & version # TBD). |
Step 1: Environment
Step 2: The problem
After adding the Crashlytics library to our App. the App kept crashing on startup saying the
BuildID
is missing please follow the integration process.But We followed those steps a million times and on different machines and still no luck.
At the end, after debugging the Crashlytics SDK I found the problem is
getResourcesIdentifier(context, "com.crashlytics.android.build_id", "string");
returning0
.After digging a lot more it turns out the reason for this null return, is this line in the
Application
tag ofandroid-manifest.xml
:android:icon="@android:drawable/ic_menu_today"
So by removing this line or changing the icon everything was fixed and normal again
Steps to reproduce:
So just add this
android:icon="@android:drawable/ic_menu_today"
icon as your application icon and remove other round Icon if exists.The text was updated successfully, but these errors were encountered: