Before Android 4.1, method android.graphics.PorterDuffColorFilter — would have incorrectly overridden the package

后端 未结 2 1720
刺人心
刺人心 2020-12-09 16:28

I am using navigation drawer activity android studio and Firebase Authentication. When i going to run this app than i get this error.



        
相关标签:
2条回答
  • 2020-12-09 17:13

    Android used to run on Dalvik VM. It seems that some support-lib classes (PorterDuffColorFilter, VectorDrawableCompat) have such scenario, so ART notifies you. is your issues resolved.

    0 讨论(0)
  • 2020-12-09 17:15

    Android used to run on Dalvik VM.

    Dalvik had a bug allowing classes to override parent's package-private methods.

    So when they switched to ART, they fixed this, so it no longer overrides the parent's method, Now when such a scenario is detected, it logs a warning, making sure you're aware of the behavior change.

    It seems that some support-lib classes (PorterDuffColorFilter, VectorDrawableCompat) have such scenario, so ART notifies you.

    I think it's safe to ignore this, unless this is your own code, in which case I would either change the method's name, or test on Android running Dalvik (pre-4.1) and running ART (4.1+)

    0 讨论(0)
提交回复
热议问题