MaterialFBook icon indicating copy to clipboard operation
MaterialFBook copied to clipboard

An Incompatible API Usage in APP for createCircularReveal

Open PSDroid2022 opened this issue 3 years ago • 0 comments

For your app, we have found that this project has accessed the following APIs which are available only on an API level higher than the declared minSdkVersion and which are accessed without proper protection. In other words, if those APIs get called at runtime, it will trigger a NoSuchMethodError and thus result in a crash of the running application.

  1. <android.view.ViewAnimationUtils: android.animation.Animator createCircularReveal(android.view.View,int,int,float,float)>: [21,30]
Error path: <me.zeeroooo.materialfb.activities.MainActivity: void access$1200(me.zeeroooo.materialfb.activities.MainActivity)>[[]]--><me.zeeroooo.materialfb.activities.MainActivity: void circleReveal()>[[]]--><android.view.ViewAnimationUtils: android.animation.Animator createCircularReveal(android.view.View,int,int,float,float)>

Error path: <me.zeeroooo.materialfb.activities.MainActivity: void access$2000(me.zeeroooo.materialfb.activities.MainActivity,int,boolean)>[[]]--><me.zeeroooo.materialfb.activities.MainActivity: void circleReveal(int,boolean)>[[]]--><android.view.ViewAnimationUtils: android.animation.Animator createCircularReveal(android.view.View,int,int,float,float)>

You can add an if-then check like "If(Build.VERSION.SDK_INT >= 21)" when invoking this API to prevent compatibility issues.

PSDroid2022 avatar Mar 01 '22 02:03 PSDroid2022