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.
If the
support-v4is on the classpath, but an older version of the library is used and theContextCompat.getColor()method is not available, AA still generates a call to it, hence creating a compilation error.