Status Update
Comments
ja...@gmail.com <ja...@gmail.com> #2
Hello, I am also affected by this issue. To me, it is caused by a mixture of distributing/installing the app as an Android App Bundle.
I was able to reproduce this crash by installing the base.apk only. The base.apk does not contain resources like mr_button_dark_static
, so they cannot be found. It appears that only splits for ldpi
, hdpi
, xhdpi
, etc. contain required resources.
Google Play is ought to install all required split-apks (isn't it?), but if someone tries to sideload the app and forgets to add a proper split apk, then this error will be surfaced.
It would be great if Google have fixed it, but at the same time it may be considered a good way to discourage people sideloading apps. ;)
vi...@eitv.com.br <vi...@eitv.com.br> #3
Does anybody solved this problem?
ti...@candyspace.com <ti...@candyspace.com> #4
android.content.res.Resources$NotFoundException
res/drawable/mr_button_dark_static.xml
This seems like a androidx.mediarouter issue though
aq...@google.com <aq...@google.com> #5
Hi folks, is there any available explanation for this other than users sideloading the apk and getting the apk splitting wrong? Because if so, I don't see what the library developers can do about this.
This seems like a androidx.mediarouter issue though
Could you narrow down what the issue is?
If we don't have concrete steps that the media router developers can take to help with this, we'll mark this as obsolete. Please kindly help us out.
bo...@justin.tv <bo...@justin.tv> #6
In my original report, I said
ic_mr_button_disconnected_dark
andic_mr_button_disabled_dark
both havexxhdpi
,xhdpi
,hdpi
, andmdpi
versions, butic_mr_button_connected_30_dark
only hasxxhdpi
andxhdpi
versions, so maybe this is the problem?
Don't we need the same resolutions for all drawable components?
aq...@google.com <aq...@google.com> #7
Ah, apologies. I was sure we had fixed that some time ago, but the change was not merged, as far as I can tell. Thanks for pointing that out again. I'll look into this.
ap...@google.com <ap...@google.com> #8
Branch: androidx-main
commit cddba9334fdcdc5e5e7ac6df9753df7095545814
Author: Santiago Seifert <aquilescanta@google.com>
Date: Wed Nov 01 16:35:29 2023
Add missing dpi versions for ic_mr_button_connected_30_dark
Add hdpi and mdpi versions of ic_mr_button_connected_30_dark,
which are missing when compared to other drawables like
ic_mr_button_disconnected_dark and ic_mr_button_disabled_dark.
Bug: 261878418
Test: Manually using an emulator with hdpi resolution and the routing demo app.
Change-Id: I907c0581d186d5c7b58e092cda645fb1994f0757
A mediarouter/mediarouter/src/main/res/drawable-hdpi/ic_mr_button_connected_30_dark.png
A mediarouter/mediarouter/src/main/res/drawable-mdpi/ic_mr_button_connected_30_dark.png
aq...@google.com <aq...@google.com> #9
The two missing resolutions have been added in
- Let me know if I missed anything.
- Please upgrade to the next release that includes the fix.
- File a fresh bug if the issue still reproduced, but please provide more info about the patterns behind the crash, like affected API versions, affected device models and DPI.
Description
Component used: androidx.mediarouter Version used: 1.3.1 Devices/Android versions reproduced on:
When reporting bugs, please always include:
We see the following stack trace in Crashlytics, but we can't reproduce the problem locally.
mr_button_dark_static.xml
refers toic_mr_button_connected_30_dark
,ic_mr_button_disconnected_dark
, andic_mr_button_disabled_dark
.ic_mr_button_disconnected_dark
andic_mr_button_disabled_dark
both havexxhdpi
,xhdpi
,hdpi
, andmdpi
versions, butic_mr_button_connected_30_dark
only hasxxhdpi
andxhdpi
versions, so maybe this is the problem?