question

Carson F. avatar image
Carson F. asked

GameCircle fails to initialize CANNOT_INITIALIZE

I am running on a kindle fire HD and I cannot get Gamecircle to successfully initialize. The app seems to find and compare the api key I have in the assets but I end up with onServiceNotReady and CANNOT_INITIALIZE as the status. I am using Marmalade and I have written an extension for game circle. here's the console log where I think it starts to fail: 10-26 19:27:54.378: I/AmazonInsightsSDK(32662): Attempting to retrieve variation(s) for project(s):'ManifestSrc','InitSigninAlertTest' 10-26 19:27:54.378: I/dalvikvm(32662): Total arena pages for JIT: 14 10-26 19:27:54.378: I/dalvikvm(32662): Total arena pages for JIT: 15 10-26 19:27:54.385: I/dalvikvm(32662): Total arena pages for JIT: 16 10-26 19:27:54.385: I/dalvikvm(32662): Total arena pages for JIT: 17 10-26 19:27:54.464: I/AmazonInsightsSDK(32662): Resolved variation: 'Control' for project: 'ManifestSrc' from server 10-26 19:27:54.471: I/AmazonInsightsSDK(32662): Event: '_http...' recorded to local filestore 10-26 19:27:54.471: I/AmazonInsightsSDK(32662): Resolved variation: 'Test' for project: 'InitSigninAlertTest' from server 10-26 19:27:54.479: I/AmazonInsightsSDK(32662): Event: '_Trea...' recorded to local filestore 10-26 19:27:54.487: I/dalvikvm(32662): Total arena pages for JIT: 18 10-26 19:27:54.487: E/GC_ResourceUtils(32662): Unable to load id for resource amazon_gc_prototype and type raw 10-26 19:27:54.487: W/ResourceType(32662): No package identifier when getting value for resource number 0x00000000 10-26 19:27:54.495: E/GC_FileUtils(32662): An error occurred while attempting to access resource: amazon_gc_prototype 10-26 19:27:54.495: E/GC_FileUtils(32662): android.content.res.Resources$NotFoundException: Resource ID #0x0 10-26 19:27:54.495: E/GC_FileUtils(32662): at android.content.res.Resources.getValue(Resources.java:1019) 10-26 19:27:54.495: E/GC_FileUtils(32662): at android.content.res.Resources.openRawResource(Resources.java:944) 10-26 19:27:54.495: E/GC_FileUtils(32662): at android.content.res.Resources.openRawResource(Resources.java:926) 10-26 19:27:54.495: E/GC_FileUtils(32662): at com.amazon.ags.html5.content.FileUtils.copyResourceContentIntoDirectory(FileUtils.java:69) 10-26 19:27:54.495: E/GC_FileUtils(32662): at com.amazon.ags.html5.content.ContentManager.revertToDefaultContent(ContentManager.java:126) 10-26 19:27:54.495: E/GC_FileUtils(32662): at com.amazon.ags.html5.content.ContentManager.fullContentInitialization(ContentManager.java:188) 10-26 19:27:54.495: E/GC_FileUtils(32662): at com.amazon.ags.html5.content.ContentManager.access$000(ContentManager.java:26) 10-26 19:27:54.495: E/GC_FileUtils(32662): at com.amazon.ags.html5.content.ContentManager$1.onRefreshCompleted(ContentManager.java:160) 10-26 19:27:54.495: E/GC_FileUtils(32662): at com.amazon.ags.html5.content.GCVariationManager$1$1.onComplete(GCVariationManager.java:90) 10-26 19:27:54.495: E/GC_FileUtils(32662): at com.amazon.ags.html5.content.GCVariationManager$1$1.onComplete(GCVariationManager.java:77) 10-26 19:27:54.495: E/GC_FileUtils(32662): at com.amazon.insights.core.DefaultInsightsHandler.onComplete(DefaultInsightsHandler.java:43) 10-26 19:27:54.495: E/GC_FileUtils(32662): at com.amazon.insights.abtest.DefaultABTestClient$1.run(DefaultABTestClient.java:197) 10-26 19:27:54.495: E/GC_FileUtils(32662): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442) 10-26 19:27:54.495: E/GC_FileUtils(32662): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) 10-26 19:27:54.495: E/GC_FileUtils(32662): at java.util.concurrent.FutureTask.run(FutureTask.java:137) 10-26 19:27:54.495: E/GC_FileUtils(32662): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) 10-26 19:27:54.495: E/GC_FileUtils(32662): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) 10-26 19:27:54.495: E/GC_FileUtils(32662): at java.lang.Thread.run(Thread.java:856) 10-26 19:27:54.495: I/AmazonInsightsSDK(32662): Event: '_Trea...' recorded to local filestore 10-26 19:27:54.760: E/GC_ContentManager(32662): Unable to initialize AGS content. SDK will be unavailable. 10-26 19:27:54.760: E/GC_ContentManager(32662): java.lang.IllegalArgumentException: Compared version must not be null 10-26 19:27:54.760: E/GC_ContentManager(32662): at com.amazon.ags.html5.content.ContentVersion.compareTo(ContentVersion.java:78) 10-26 19:27:54.760: E/GC_ContentManager(32662): at com.amazon.ags.html5.content.ContentManager.fullContentInitialization(ContentManager.java:204) 10-26 19:27:54.760: E/GC_ContentManager(32662): at com.amazon.ags.html5.content.ContentManager.access$000(ContentManager.java:26) 10-26 19:27:54.760: E/GC_ContentManager(32662): at com.amazon.ags.html5.content.ContentManager$1.onRefreshCompleted(ContentManager.java:160) 10-26 19:27:54.760: E/GC_ContentManager(32662): at com.amazon.ags.html5.content.GCVariationManager$1$1.onComplete(GCVariationManager.java:90) 10-26 19:27:54.760: E/GC_ContentManager(32662): at com.amazon.ags.html5.content.GCVariationManager$1$1.onComplete(GCVariationManager.java:77) 10-26 19:27:54.760: E/GC_ContentManager(32662): at com.amazon.insights.core.DefaultInsightsHandler.onComplete(DefaultInsightsHandler.java:43) 10-26 19:27:54.760: E/GC_ContentManager(32662): at com.amazon.insights.abtest.DefaultABTestClient$1.run(DefaultABTestClient.java:197) 10-26 19:27:54.760: E/GC_ContentManager(32662): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442) 10-26 19:27:54.760: E/GC_ContentManager(32662): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) 10-26 19:27:54.760: E/GC_ContentManager(32662): at java.util.concurrent.FutureTask.run(FutureTask.java:137) 10-26 19:27:54.760: E/GC_ContentManager(32662): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) 10-26 19:27:54.760: E/GC_ContentManager(32662): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) 10-26 19:27:54.760: E/GC_ContentManager(32662): at java.lang.Thread.run(Thread.java:856) 10-26 19:27:54.760: V/Amazon-GameCircle(32662): s3eGameCircleInitialize service failed!: CANNOT_INITIALIZE
10 |5000

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

Carson F. avatar image
Carson F. answered
I'm guessing that the resources from the GameCircle SDK are not found. Not sure where to include them in my package.
10 |5000

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

Venkat@Amazon avatar image
Venkat@Amazon answered
Have you linked the GameCircle SDK library into your workspace? If not please follow the link to import GameCircle SDK into your project and try again. https://developer.amazon.com/sdk/gamecircle/documentation/gamecircle-init.html#Section2
10 |5000

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

brennansb avatar image
brennansb answered
Hey Carson, Are you using the s3eGameCircle extension? Any luck getting it to work? If you look at the "advanced" section of the android specific deployment page of the deploy tool, there should be a line for s3eGameCircle.jar under the "External Jar File" section. Is that the resources you were talking about? Or are you referring to the style resources or something being added via the AndroidManifest.xml?
10 |5000

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