question

yyjunchen avatar image
yyjunchen asked

unable to initialize GameCircle with Unity

AGSClient.IsServiceReady() return false 11-08 10:43:47.762: E/AndroidRuntime(1730): FATAL EXCEPTION: pool-4-thread-1 11-08 10:43:47.762: E/AndroidRuntime(1730): java.lang.Error: FATAL EXCEPTION [pool-4-thread-1] 11-08 10:43:47.762: E/AndroidRuntime(1730): Unity version : 4.2.0f4 11-08 10:43:47.762: E/AndroidRuntime(1730): Device model : Amazon KFTT 11-08 10:43:47.762: E/AndroidRuntime(1730): Device fingerprint: Android/tate/tate:4.0.3/IML74K/7.4.6_user_4620220:user/release-keys 11-08 10:43:47.762: E/AndroidRuntime(1730): Caused by: java.lang.SecurityException: ConnectivityService: Neither user 10023 nor current process has android.permission.ACCESS_NETWORK_STATE. 11-08 10:43:47.762: E/AndroidRuntime(1730): at android.os.Parcel.readException(Parcel.java:1327) 11-08 10:43:47.762: E/AndroidRuntime(1730): at android.os.Parcel.readException(Parcel.java:1281) 11-08 10:43:47.762: E/AndroidRuntime(1730): at android.net.IConnectivityManager$Stub$Proxy.getActiveNetworkInfo(IConnectivityManager.java:597) 11-08 10:43:47.762: E/AndroidRuntime(1730): at android.net.ConnectivityManager.getActiveNetworkInfo(ConnectivityManager.java:365) 11-08 10:43:47.762: E/AndroidRuntime(1730): at com.amazon.insights.core.system.AndroidConnectivity.determineAvailability(AndroidConnectivity.java:58) 11-08 10:43:47.762: E/AndroidRuntime(1730): at com.amazon.insights.core.system.AndroidConnectivity.isConnected(AndroidConnectivity.java:40) 11-08 10:43:47.762: E/AndroidRuntime(1730): at com.amazon.insights.delivery.policy.ConnectivityPolicy.isAllowed(ConnectivityPolicy.java:32) 11-08 10:43:47.762: E/AndroidRuntime(1730): at com.amazon.insights.delivery.DefaultDeliveryClient$3.run(DefaultDeliveryClient.java:167) 11-08 10:43:47.762: E/AndroidRuntime(1730): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) 11-08 10:43:47.762: E/AndroidRuntime(1730): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) 11-08 10:43:47.762: E/AndroidRuntime(1730): at java.lang.Thread.run(Thread.java:856) 11-08 10:43:47.769: I/AmazonInsightsSDK(1730): Attempting to retrieve variation(s) for project(s):'Universal Experiment List' 11-08 10:43:47.785: I/AmazonInsightsSDK(1730): Event: 'WHISP...' recorded to local filestore 11-08 10:43:47.793: E/AmazonInsightsSDK(1730): An unexpected error occurred. Retrieval of variations could not be completed 11-08 10:43:47.816: W/ActivityManager(258): Force finishing activity com.lavaspark.amazonTest1/com.unity3d.player.UnityPlayerNativeActivity Message was edited by: yyjunchen
10 |5000

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
Hello Yyjunchen, Thank you for your posting, from looking at the stack trace that you have posted in this thread, you need to modify the AndroidManifest.xml file under Plugins -> Android to include permissions to access the network state. Please put the following in that file: This is also included in the example manifest that is included with the GameCircle Unity plugin, so please make sure that you have a file called AndroidManifest.xml with the settings that are listed within our example.
10 |5000

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