AppsFlyerSDK / appsflyer-flutter-plugin

Flutter Plugin for AppsFlyer SDK
MIT License
144 stars 114 forks source link

Strict mode violation error in google play #139

Closed yfer closed 1 year ago

yfer commented 3 years ago

Describe the bug Google play shows:

StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Ldalvik/system/DexPathList;->nativeLibraryDirectories:Ljava/util/List;
StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Ldalvik/system/BaseDexClassLoader;->pathList:Ldalvik/system/DexPathList;
StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Ldalvik/system/DexPathList;->nativeLibraryPathElements:[Ldalvik/system/DexPathList$NativeLibraryElement;
StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Landroid/app/ActivityThread;->currentApplication()Landroid/app/Application;

Details of one such exception:

StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Ldalvik/system/BaseDexClassLoader;->pathList:Ldalvik/system/DexPathList;
    at android.os.StrictMode.lambda$static$1(StrictMode.java:428)
    at android.os.-$$Lambda$StrictMode$lu9ekkHJ2HMz0jd3F8K8MnhenxQ.accept(Unknown Source:2)
    at java.lang.Class.getDeclaredField(Native Method)
    at com.appsflyer.internal.b.<clinit>(:124)
    at com.appsflyer.internal.b.$$b(Unknown Source:0)
    at com.appsflyer.AppsFlyerLibCore$b.run(:36)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at com.appsflyer.AFExecutor$1$4.run(:2)
    at java.lang.Thread.run(Thread.java:764)

To Reproduce Steps to reproduce the behavior:

  1. Setup appsflyer_sdk: ^6.2.4+4-nullsafety
  2. build app
  3. deploy it to google play, google play shows theese messages

Expected behavior Expect appsflyer not to use non-sdk apis

marslannasr7koncepts commented 2 years ago

Did you fix that or not and Plays tore reject it or apple available on Store.?

yfer commented 2 years ago

@marslannasr7koncepts no i didn'tPlay store ignores it. Don't think this is apple-related, because java.