Skip to content

An Incompatible API Usage in APP for createCircularReveal #234

@PSDroid2022

Description

@PSDroid2022

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions