Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NonSdkApiUsedViolation on API 29+ #86

Open
gomtos opened this issue Sep 2, 2020 · 1 comment
Open

NonSdkApiUsedViolation on API 29+ #86

gomtos opened this issue Sep 2, 2020 · 1 comment

Comments

@gomtos
Copy link

gomtos commented Sep 2, 2020

There are so many NonSdkApiUsedViolation on API 29+

In the pre launch report on the play store, I get 'StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation' on a android 9 device test.

On the other devices with lower android version this problem does not occur.

How can I prevent the usage of the non-SDK intefaces so will not get reports of our apps not running or crashing on android 9 devices ?

Logs:

StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Landroid/view/LayoutInflater;->mConstructorArgs:[Ljava/lang/Object;
at android.os.StrictMode.lambda$static$1(StrictMode.java:407)
at android.os.-$$Lambda$StrictMode$lu9ekkHJ2HMz0jd3F8K8MnhenxQ.accept(Unknown Source:2)
at java.lang.Class.getDeclaredField(Native Method)
at d.g.b.t.b$a.a(SourceFile:9)
at d.g.b.q.f$a.onCreateView(SourceFile:7)
at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:239)
at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:242)
at android.view.LayoutInflater.tryCreateView(LayoutInflater.java:1069)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:997)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:961)
at android.view.LayoutInflater.inflate(LayoutInflater.java:659)
at android.view.LayoutInflater.inflate(LayoutInflater.java:534)
at d.g.b.q.f.inflate(SourceFile:9)

@gomtos
Copy link
Author

gomtos commented Sep 2, 2020

Is there any problem with the behavior of the utils.Reflection class for StrictMode policy violations in API 28+?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant