-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Failed resolution of: Landroid/graphics/ColorSpace #2638
Comments
I'm observing the same issue after upgrading to Gradle Plugin 7.0.3 and enabling minification in my app on Android 7.x and earlier. Perhaps a change to R8 in AGP 7.X has over optimized code shrinking and is removing some upstream code path which prevented callers from accessing I was able to resolve the issue locally by forking the this repo and applying the following version guard check to
If the core team can comment, I'm happy to create a PR with this change. |
we have the same error |
Put this piece of code in your proguard-rules.pro file :-
This will work like a charm. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "bug" or "enhancement" and I will leave it open. Thank you for your contributions. |
Option from @prakhar-parth is temporary. The core team should consider the option from @tehutiscribe |
Please release a hotfix version with this ASAP. It leads to crashes in production for many users. |
Its works for me. React Native 0.68 |
Facing this issue in react-native@0.69.12. Do we have a proper solution then one which is mentioned by @geeknection |
This issue is still not resolved in the latest version |
Description
It worked fine before I updated my Android Studio to 2020.3.1. I just discovered that android.graphics.ColorSpace was introduced in Android API 26. So all the devices which are under Android 8 will throw this exception. But how could it work so great when I was using Android Studio 4.1.3 to build app bundle?
Reproduction
Use Android Studio to 2020.3.1 and the latest Gradle plugin, build app bundle, run on devices which are using Android 5, 6, 7.
The exception was threw by this method.
But there was already a
ColorSpace
usage in this method and it did check the API level before using it.This method didn't throw runtime exception.
Here are what I tried.
Gradle clean command.
Build -> Clean project.
Build -> Rebuild project.
Change buildToolsVersion to the latest.
Change androidx.appcompat:appcompat to 2.5.0.
Add multidex-config.txt and multidex-config.pro
But none of these worked.
Solution
Use Android Studio 4.1.3 to build app bundle.
Additional Information
The text was updated successfully, but these errors were encountered: