Our team upgraded to 5.5 and now our game crashes on Android when initializing location services.
Is there an ETA on this fix? Should we roll back to an older version of Unity??
Our team upgraded to 5.5 and now our game crashes on Android when initializing location services.
Is there an ETA on this fix? Should we roll back to an older version of Unity??
Can you provide more details., also try 5.5 patch 1
I tried the patch and it’s still broken.
Details are simple, start location services on a app that is running on any Android device. Instant crash.
Any more people having this issue? I do…
I have the same issue, 5.5.0p2
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: jstring has wrong type: android.location.Location
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] in call to GetStringUTFChars
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] from java.lang.Object bitter.jnibridge.JNIBridge.invoke(long, java.lang.Class, java.lang.reflect.Method, java.lang.Object[ ])
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] “UnityMain” prio=5 tid=18 Runnable
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] | group=“main” sCount=0 dsCount=0 obj=0x32c080b0 self=0xb4a80000
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] | sysTid=24249 nice=0 cgrp=default sched=0/0 handle=0xb4933080
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] | state=R schedstat=( 0 0 0 ) utm=2877 stm=489 core=4 HZ=100
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] | stack=0x9ff61000-0x9ff63000 stackSize=1036KB
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] | held mutexes= “mutator lock”(shared held)
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] at bitter.jnibridge.JNIBridge.invoke(Native method)
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] at bitter.jnibridge.JNIBridge$a.invoke(unavailable:-1)
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] - locked <0x0f634b20> (a java.lang.Object[ ])
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] at java.lang.reflect.Proxy.invoke(Proxy.java:397)
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] at android.location.LocationListener.onLocationChanged(LocationListener.java:-2)
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] at android.location.LocationManager$ListenerTransport._handleMessage(LocationManager.java:285)
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] at android.location.LocationManager$ListenerTransport.access$000(LocationManager.java:214)
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] at android.location.LocationManager$ListenerTransport$1.handleMessage(LocationManager.java:230)
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] at android.os.Handler.dispatchMessage(Handler.java:102)
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] at android.os.Looper.loop(Looper.java:135)
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65] at com.unity3d.player.UnityPlayer$b.run(unavailable:-1)
12-21 11:51:27.057: A/art(24224): art/runtime/check_jni.cc:65]
We are having the same issue. We are currently using Unity version 5.5.0p2.
I also tried same project with Unity version 5.4.3 and it worked nicely, but our current project can’t be downgraded to Unity 5.4.x :I Downgrading Unity 5.5 to 5.4 causes Failures in Scenes and Prefabs - Unity Engine - Unity Discussions
Have you created issue report?
EDIT: My project and location service works well when targeting iOS.
No, but I just found this: Unity Issue Tracker - [Android] Location app crashes due to error 'jstring has wrong type: android.location.Location'
This needs be fixed urgently for next patch release, where are you Unityteam