Search Unity

  1. Get the latest news, tutorials and offers directly to your inbox with our newsletters. Sign up now.
    Dismiss Notice

Google Play API warnings started today

Discussion in 'Android' started by Kurt-Dekker, May 12, 2019.

  1. Jushik

    Jushik

    Joined:
    Oct 11, 2016
    Posts:
    6
    Same bunch of warnings here
     
  2. DUBBTI

    DUBBTI

    Joined:
    May 24, 2018
    Posts:
    2
    Also got it...


    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(StrictMode.java:428)
    at android.os.-$$Lambda$StrictMode$lu9ekkHJ2HMz0jd3F8K8MnhenxQ.accept(Unknown Source:2)
    at java.lang.Class.getDeclaredConstructorInternal(Native Method)
    at java.lang.Class.getConstructor0(Class.java:2325)
    at java.lang.Class.getDeclaredConstructor(Class.java:2166)
    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.access$300(Unknown Source:0)
    at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:193)
    at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)
     
  3. F-icaro

    F-icaro

    Joined:
    Jan 7, 2014
    Posts:
    1
    I've got the same errors.

    I used Unity 2019.4.23f1 to build my game and test in pre-reporting in GooglePlay before the launch of the production version.


    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(StrictMode.java:428)
    at android.os.-$$Lambda$StrictMode$lu9ekkHJ2HMz0jd3F8K8MnhenxQ.accept(Unknown Source:2)
    at java.lang.Class.getDeclaredConstructorInternal(Native Method)
    at java.lang.Class.getConstructor0(Class.java:2325)
    at java.lang.Class.getDeclaredConstructor(Class.java:2166)
    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.access$300(Unknown Source:0)
    at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:95)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:193)
    at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)


    So... I changed de Unity version (I use the Unity 2019.4.x version), I've downloaded the Unity 2020.3.2 and Unity 2021.1.1. GooglePlay uses the Firebase Test Lab, so I've decided use it to test the APK. In all API versions, the APK test shows me the same error, in same API version that is the API 29 (10), and I've tested in all available devices with API 29, see this:
    upload_2021-4-12_15-10-7.png


    Error and Warning in API's 29 that was crashed (3 virtual devices):

    upload_2021-4-12_15-14-28.png


    Just a warning in API's 29 approved (2):

    upload_2021-4-12_15-16-17.png


    I builded an simple APK in Unity versions (2019.4.23f1 / 2019.4.24f / 2020.x and 2021.x), without script, just to verify these error and warning, Firebase Test shows me the same error and same warning, "passed" in same 2 devices with API 29 (Pixel 4 and SM-G981U1), and crashed in same 3 virtual devices with API 29 (Pixel 2, Google TV Amati, Low resolution MDPI phone):
    upload_2021-4-12_16-34-33.png


    Same error and warning in APK TestApp (without scripts):
    upload_2021-4-12_16-36-2.png


    P.S: In some virtual devices, the APK is "passed" with warning that is the same from the pre-reporting in GooglePlay, in other, the APK crashed or is skipped.

    I've submitted an request for the Unity Support, they say me that is an technical question, but how I / We resolve it to avoid that the App game wasn't removed from GooglePlay?
     
    Arttmptt likes this.
  4. cheesemaster

    cheesemaster

    Joined:
    Sep 4, 2012
    Posts:
    31
    @Unity, please don't forget about developers who are stuck on 2017 because they wrote projects which heavily depend on Unityscript and Legacy GUI systems, thinking they were flagship and can't update Unity beyond.

    Our warnings in Firebase Test Lab are:

    Your app uses 2 non-SDK interfaces, which are incompatible with Android P+.

    Landroid/media/AudioTrack;->getLatency()I
    Landroid/media/AudioManager;->getOutputLatency(I)I

    When deployed to API 30 (only plugin is GoogleMobileAds).

    It would be helpful to know what tolerable solutions could put this to bed, for instance disabling audio or setting it up differently and how might one do so only for specific APIs.

    Thanks
     
  5. BTippen

    BTippen

    Joined:
    Jul 9, 2019
    Posts:
    6
    Any news on this issue? I am getting this in 2021
     
  6. Loksta8

    Loksta8

    Joined:
    Apr 19, 2021
    Posts:
    4
    Same happened to me... Are you guys using Google Play Game Services when this happened to you all? This started when I imported that plugin into my project.

    Stack called 10 times
    My error:
    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(StrictMode.java:428)
    at android.os.-$$Lambda$StrictMode$lu9ekkHJ2HMz0jd3F8K8MnhenxQ.accept(Unknown Source:2)
    at java.lang.Class.getDeclaredConstructorInternal(Native Method)
    at java.lang.Class.getConstructor0(Class.java:2325)
    at java.lang.Class.getDeclaredConstructor(Class.java:2166)
    at bitter.jnibridge.JNIBridge$a.<init>(Unknown Source:25)
    at bitter.jnibridge.JNIBridge.newInterfaceProxy(Unknown Source:8)
    at com.unity3d.player.UnityPlayer.nativeFocusChanged(Native Method)
    at com.unity3d.player.UnityPlayer.access$000(Unknown Source:0)
    at com.unity3d.player.UnityPlayer$e$1.a(Unknown Source:15)
    at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source:146)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:193)
    at com.unity3d.player.UnityPlayer$e.run(Unknown Source:20)
     
unityunity