MaterialFBook
MaterialFBook copied to clipboard
An Incompatible API Usage in APP for createCircularReveal
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.
- <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.