Search code examples
androidunity-game-engineplayscape

PlayscapeManager won't initialize on android device


Im not getting any errors or debug messages in adb logcat. But if im trying to press the Catalog(More Games) button, i get:

I/Unity (16917): AndroidJavaException: java.lang.NullPointerException: Attempt to invoke interface method 'void java.util.concurrent.ExecutorService.execute(java.lang.Runnable)' on a null object reference I/Unity (16917): at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in :0 I/Unity (16917): at UnityEngine.AndroidJNISafe.CallVoidMethod (IntPtr obj, IntPtr methodID, UnityEngine.jvalue[] args) [0x00000] in :0 I/Unity (16917): at UnityEngine.AndroidJavaObject._Call (System.String methodName, System.Object[] args) [0x00000] in :0 I/Unity (16917): at UnityEngine.AndroidJavaObject.Call (System.String methodName, System.Object[] args) [0x00000] in :0 I/Unity
(16917): at Playscape.Internal.PlayscapeCatalogAndroid.showCatalog () [0x00000] in :0 I/Unity (16917): at Playscape.Catalog.Catalog.showCatalog () [0x00000] in :0 I/Unity (16917): at PlayscapeCatalog.ShowCatalog () [0x00000] in :0 I/Unity (16917): UnityEngine.GameObject:SendMessage(String, Object, SendMessageOptions) I/Unity (16917): UnityEngine.GameObject:SendMessage(Strin

Anyone know what it can be? Its like the PlayscapeManager isn't initialized, but i have tried to put it in more scenes and it doesn't work.

I can see it works in the editor when i play it, but not on the phone.


Solution

  • I managed to solve my problem by updating the SDK and doing a new strip of the google play services JAR.