question

leoviathan avatar image
leoviathan asked

Bug with Unity3D Plugin

Hello, I've done all the integration and everything is working fine. The only thing I was unable to do, is to change the location of the toast notifications. This code: AGSClient.SetPopUpLocation(GameCirclePopupLocation.TOP_CENTER); Doesn't do anything in my Development Build and it will generate a fatal error in the Production Build. Here is the log: 07-10 12:59:24.409: E/AndroidRuntime(14342): FATAL EXCEPTION: GLThread 853 07-10 12:59:24.409: E/AndroidRuntime(14342): java.lang.Error: FATAL EXCEPTION [GLThread 853] 07-10 12:59:24.409: E/AndroidRuntime(14342): Unity version : 4.1.5f1 07-10 12:59:24.409: E/AndroidRuntime(14342): Device model : Amazon KFTT 07-10 12:59:24.409: E/AndroidRuntime(14342): Device fingerprint: Android/tate/tate:4.0.3/IML74K/7.4.3_user_4309320:user/release-keys 07-10 12:59:24.409: E/AndroidRuntime(14342): Caused by: java.lang.NoClassDefFoundError: android/util/DisplayMetrics 07-10 12:59:24.409: E/AndroidRuntime(14342): at com.unity3d.player.UnityPlayer.getScreenDPI(Unknown Source) 07-10 12:59:24.409: E/AndroidRuntime(14342): at com.unity3d.player.UnityPlayer.nativeRender(Native Method) 07-10 12:59:24.409: E/AndroidRuntime(14342): at com.unity3d.player.UnityPlayer.onDrawFrame(Unknown Source) 07-10 12:59:24.409: E/AndroidRuntime(14342): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1462) 07-10 12:59:24.409: E/AndroidRuntime(14342): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216) 07-10 12:59:24.409: E/AndroidRuntime(14342): Caused by: java.lang.NullPointerException 07-10 12:59:24.409: E/AndroidRuntime(14342): at com.amazon.ags.api.unity.AmazonGamesClientProxyImpl.setPopUpLocation(AmazonGamesClientProxyImpl.java:119) 07-10 12:59:24.409: E/AndroidRuntime(14342): at com.unity3d.player.UnityPlayer.nativeRender(Native Method) 07-10 12:59:24.409: E/AndroidRuntime(14342): ... 4 more I'm using a Kindle Fire HD by the way. Thanks, Léo [b][/b][b][/b][b][/b][b][/b][b][/b][b][/b][b][/b][b][/b]
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Leoviathan, Thank you for letting us know about the issue. Very recently, we have released GameCircle 2.0 sdk what should have better performance. Can you please confirm this issue on the new sdk? Please refer this link related the new sdk : https://developer.amazon.com/sdk/gamecircle/documentation/unity-gamecircle-overview.html Please write back to us if the issue is still observed there with new sdk. Thank you.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.