Search Issue Tracker


Under Consideration for 2022.2.X



Found in





Issue ID




[Android]"StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation" thrown in Google Play when APK is published



1. Open empty Unity project
2. Build Android APK
3. Upload APK to Google Play Developer console

Expected result - No API warnings are thrown
Actual result - API warning is thrown in Google Play developer console:
StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Ljava/lang/invoke/MethodHandles$Lookup;-><init>(Ljava/lang/Class;I)V
at android.os.StrictMode.lambda$static$1(
at android.os.-$$Lambda$StrictMode$lu9ekkHJ2HMz0jd3F8K8MnhenxQ.accept(Unknown Source:2)
at java.lang.Class.getDeclaredConstructorInternal(Native Method)
at java.lang.Class.getConstructor0(
at java.lang.Class.getDeclaredConstructor(
at bitter.jnibridge.JNIBridge$a.<init>(Unknown Source:25)
at bitter.jnibridge.JNIBridge.newInterfaceProxy(Unknown Source:8)
at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
at com.unity3d.player.UnityPlayer.c(Unknown Source:0)
at com.unity3d.player.UnityPlayer$e$2.queueIdle(Unknown Source:72)
at android.os.Looper.loop(
at com.unity3d.player.UnityPlayer$ Source:32)

Reproducible with - 2020.1.0a13, 2019.3.0b9, 2018.4.0f1

Note - See "edit" information if you don't want to create project from scratch to reproduce the issue

Comments (15)

  1. Sevenovic

    Jun 10, 2022 15:58

  2. brijesh_w7

    Jan 13, 2022 19:53

    Hi Unity

    Do you have any suggestion or ETA to fix this issue because later on, this may become a major issue


  3. DaaMonkey

    Aug 03, 2021 10:00

    Also in 2020.3.8f1

  4. Combat-Wombat

    May 25, 2021 08:51

    Same in 2020.2.6f1

  5. MudbuG

    Jan 22, 2021 05:07

    I have this problem with 2019.4.17f1

  6. tainguyenhuu

    Jan 17, 2021 14:33

    me too...

  7. ujn_dev

    Nov 17, 2020 17:55

    The problem still exists on the latest release 2020.1.13f1

  8. ujn_dev

    Nov 17, 2020 17:54

    The problem still exists on the latest release 2020.1.13f1.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.