Hey all,
Thanks for looking into this problem.
I have 2 Unity projects and I was just about to release them (one being an updated app and the 2nd being a new release) but I happened to notice the ‘pre-launch report’ menu item in Google Play. For my 2 apps I have the errors below.
My 2 apps are education based, i.e. text boxes, audio playing from file asset, buttons, toggles, screen navigation,impage backgrounds, android device back button functionality, link to website online, etc. No animation, they are 2D set up, no saving data apart from player prefs of volume setting,
errors:
App 1 updated app
API Ljava/lang/invoke/MethodHandles$Lookup;->(Ljava/lang/Class;I)V
20 occurrences identified. Only unique stack traces are shown.
API Landroid/media/AudioSystem;->getPrimaryOutputFrameCount()I
2 occurrences identified. Only unique stack traces are shown.
API Landroid/media/AudioSystem;->getPrimaryOutputSamplingRate()I
2 occurrences identified. Only unique stack traces are shown.
App2 was to be a newly released app
API Ljava/lang/invoke/MethodHandles$Lookup;->(Ljava/lang/Class;I)V
22 occurrences identified. Only unique stack traces are shown.
API Landroid/media/AudioSystem;->getPrimaryOutputFrameCount()I
2 occurrences identified. Only unique stack traces are shown.
API Landroid/media/AudioSystem;->getPrimaryOutputSamplingRate()I
2 occurrences identified. Only unique stack traces are shown.
I am learning as I go with Unity dev, I come from a java background but am making apps using unity in c# now. I have 2 questions, I wonder if anyone could give their opinions please? I will of course wait for the reply/ongoing search for info on the overall issue of this thread/topic.
-
I wonder with using Unity components, and all that goes into the how unity builds the .apk, I wonder if there is always going to be these errors in some form. We can change our code to utilise public SDK’s but is Unity doing the same? What is the vibe out there in the Unity community?
-
Given the restrictions on non-SDK interfaces is due to “Starting in Android 9 (API level 28), the platform restricts which non-SDK interfaces your app can use…” - we have all read on developer. android. com. is it probable that if we have the ‘Unity -->Build Settings -->Target API’ not higher than 27 , will this remove the problems? Yes we will loose the current 10.4% market share of devices that use Android 9, but its a trade off for the amount of time to try and combat these issues to get zero errors (if indeed it is something we can fix, given your thoughts on 1)above)
thanks