You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
AA generates call to ContextCompat.getColor even if it does not exist #1665
If the support-v4 is on the classpath, but an older version of the library is used and the ContextCompat.getColor() method is not available, AA still generates a call to it, hence creating a compilation error.
But i remember that in some point, we handled that the user can have an older version of support library. At least we handle that in the Activity options.
So the problem here that we handle that case if the whole ContextCompat class is missing, but we do not handle the case when ContextCompat is present but lacks the method we want to call.
Activity
dodgex commentedon Dec 20, 2015
iirc we decided to assume that the user should have the latest support-v4 dependency?
WonderCsabo commentedon Dec 20, 2015
I do not remember. :S
dodgex commentedon Dec 20, 2015
looks like i'm wrong? #1424
WonderCsabo commentedon Dec 20, 2015
But i remember that in some point, we handled that the user can have an older version of support library. At least we handle that in the Activity options.
dodgex commentedon Dec 20, 2015
also, have you tried AA 4.0? there we have a
ContextAwareResHandlerthat is used for ColorResWonderCsabo commentedon Dec 20, 2015
Yes, i tried AA 4.0.
WonderCsabo commentedon Dec 20, 2015
So the problem here that we handle that case if the whole
ContextCompatclass is missing, but we do not handle the case whenContextCompatis present but lacks the method we want to call.dodgex commentedon Dec 20, 2015
ah, thats possible yeah