Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Warnings in the pre-launch report for deprecated API

Discussion in 'Android' started by Suduckgames, Sep 11, 2019.

  1. Suduckgames

    Suduckgames

    Joined:
    Nov 28, 2016
    Posts:
    218
    Hi there, after upload the new aab with the 64 bit compliant, in the pre-launch report I am getting 11 warning for using a "non SDK api"

    It is safe to still upload the version?

    Example of the stack trace given by google

    Code (JavaScript):
    1. StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Landroid/media/AudioSystem;->getPrimaryOutputFrameCount()I
    2.     at android.os.StrictMode.lambda$static$1(StrictMode.java:428)
    3.     at android.os.-$$Lambda$StrictMode$lu9ekkHJ2HMz0jd3F8K8MnhenxQ.accept(Unknown Source:2)
    4.     at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
    5.     at com.unity3d.player.UnityPlayer.c(Unknown Source:0)
    6.     at com.unity3d.player.UnityPlayer$e$2.queueIdle(Unknown Source:72)
    7.     at android.os.MessageQueue.next(MessageQueue.java:395)
    8.     at android.os.Looper.loop(Looper.java:160)
    9.     at com.unity3d.player.UnityPlayer$e.run(Unknown Source:32)


    Code (JavaScript):
    1.  
    2. StrictMode policy violation: android.os.strictmode.NonSdkApiUsedViolation: Landroid/media/AudioSystem;->getPrimaryOutputFrameCount()I
    3.    at android.os.StrictMode.lambda$static$1(StrictMode.java:428)
    4.    at android.os.-$$Lambda$StrictMode$lu9ekkHJ2HMz0jd3F8K8MnhenxQ.accept(Unknown Source:2)
    5.    at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
    6.    at com.unity3d.player.UnityPlayer.c(Unknown Source:0)
    7.    at com.unity3d.player.UnityPlayer$e$2.queueIdle(Unknown Source:72)
    8.    at android.os.MessageQueue.next(MessageQueue.java:395)
    9.    at android.os.Looper.loop(Looper.java:160)
    10.    at com.unity3d.player.UnityPlayer$e.run(Unknown Source:32)
    11. [ 09-11 00:38:02.949 15119:15172 D/         ]
    12. PlayerBase::PlayerBase()
    13. [ 09-11 00:38:02.949 15119:15172 D/         ]
    14. TrackPlayerBase::TrackPlayerBase()
    15.  

    I can give more information about all of the APIs used if needed
     
  2. JuliusM

    JuliusM

    Unity Technologies

    Joined:
    Apr 17, 2013
    Posts:
    835
    Suduckgames likes this.