@ DavidRangel - I am trying to integrate GameCircle with my apps. now i created a new profile for apps and followed the instructions for that profile, but I half-suspect that profiles may be causing the errors. I did grab the latest SDK and I’m testing against the Android emulator.
The error is related to the API key. I’ve double-checked the MD5 I used and it seems correct. Could it be something with my emulator?
08-21 20:23:05.512: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(17662): getAppInfo : packageName=com.crazy.crazyrocket
08-21 20:23:05.512: I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(17662): Finding API Key for com.crazy.crazyrocket
08-21 20:23:05.513: I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(17662): Attempting to parse API Key from assets directory
08-21 20:23:05.516: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): Begin decoding API Key for packageName=com.crazy.crazyrocket
08-21 20:23:05.531: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(17662): APIKey:<obscured>
08-21 20:23:05.532: I/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): num sigs = 1
08-21 20:23:05.533: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(17662): Signature checking.:<obscured>
08-21 20:23:05.533: D/OpenSSLLib(17662): OpensslErr:Module:13(114:155); file:external/openssl/crypto/asn1/asn1_lib.c ;Line:142;Function:ASN1_get_object
08-21 20:23:05.534: D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(17662): Fingerpirint checking:<obscured>
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): Failed to decode: Decoding fails: certificate fingerprint can’t be verified!
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): java.lang.SecurityException: Decoding fails: certificate fingerprint can’t be verified!
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at com.amazon.identity.auth.device.appid.APIKeyDecoder.verifyPayload(APIKeyDecoder.java:332)
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at com.amazon.identity.auth.device.appid.APIKeyDecoder.doDecode(APIKeyDecoder.java:127)
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at com.amazon.identity.auth.device.appid.APIKeyDecoder.decode(APIKeyDecoder.java:91)
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at com.amazon.identity.auth.device.appid.AbstractAppIdentifier.getAppInfo(AbstractAppIdentifier.java:85)
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager.<init>(AmazonAuthorizationManager.java:123)
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at com.amazon.ags.api.AmazonGamesClient.initialize(AmazonGamesClient.java:144)
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at com.crazy.crazyrocket.MainActivity.onResume(MainActivity.java:30)
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1197)
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at android.app.Activity.performResume(Activity.java:5343)
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2950)
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2993)
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1363)
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at android.os.Handler.dispatchMessage(Handler.java:110)
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at android.os.Looper.loop(Looper.java:193)
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at android.app.ActivityThread.main(ActivityThread.java:5292)
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at java.lang.reflect.Method.invokeNative(Native Method)
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at java.lang.reflect.Method.invoke(Method.java:515)
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
08-21 20:23:05.535: W/com.amazon.identity.auth.device.appid.APIKeyDecoder(17662): at dalvik.system.NativeStart.main(Native Method)
08-21 20:23:05.537: E/GameCircleClient(17662): Unable to read api key. GameCircle requires an api key to be included in ‘assets/api_key.txt’. GameCircle will not initialize.
08-21 20:23:05.537: E/GameCircleClient(17662): java.lang.IllegalArgumentException: Invalid API Key
08-21 20:23:05.537: E/GameCircleClient(17662): at com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager.<init>(AmazonAuthorizationManager.java:126)
08-21 20:23:05.537: E/GameCircleClient(17662): at com.amazon.ags.api.AmazonGamesClient.initialize(AmazonGamesClient.java:144)
08-21 20:23:05.537: E/GameCircleClient(17662): at com.crazy.crazyrocket.MainActivity.onResume(MainActivity.java:30)
08-21 20:23:05.537: E/GameCircleClient(17662): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1197)
08-21 20:23:05.537: E/GameCircleClient(17662): at android.app.Activity.performResume(Activity.java:5343)
08-21 20:23:05.537: E/GameCircleClient(17662): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2950)
08-21 20:23:05.537: E/GameCircleClient(17662): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2993)
08-21 20:23:05.537: E/GameCircleClient(17662): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1363)
08-21 20:23:05.537: E/GameCircleClient(17662): at android.os.Handler.dispatchMessage(Handler.java:110)
08-21 20:23:05.537: E/GameCircleClient(17662): at android.os.Looper.loop(Looper.java:193)
08-21 20:23:05.537: E/GameCircleClient(17662): at android.app.ActivityThread.main(ActivityThread.java:5292)
08-21 20:23:05.537: E/GameCircleClient(17662): at java.lang.reflect.Method.invokeNative(Native Method)
08-21 20:23:05.537: E/GameCircleClient(17662): at java.lang.reflect.Method.invoke(Method.java:515)
08-21 20:23:05.537: E/GameCircleClient(17662): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
08-21 20:23:05.537: E/GameCircleClient(17662): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
08-21 20:23:05.537: E/GameCircleClient(17662): at dalvik.system.NativeStart.main(Native Method)
08-21 20:23:05.537: D/ActivityThread(17662): ACT-AM_ON_RESUME_CALLED ActivityRecord{425abe20 token=android.os.BinderProxy@425ab5f8 {com.crazy.crazyrocket/com.crazy.crazyrocket.MainActivity}}
08-21 20:23:05.538: V/PhoneWindow(17662): DecorView setVisiblity: visibility = 0 ,Parent =ViewRoot{42643a58 com.crazy.crazyrocket/com.crazy.crazyrocket.MainActivity,ident = 0}, this =com.android.internal.policy.impl.PhoneWindow$DecorView{425b41a0 V.E… R…I. 0,0-480,800}
08-21 20:23:05.539: D/ActivityThread(17662): ACT-RESUME_ACTIVITY handled : 1 / android.os.BinderProxy@425ab5f8
08-21 20:23:05.540: V/InputMethodManager(17662): onWindowFocus: null softInputMode=288 first=false flags=#1810100
08-21 20:23:05.540: V/InputMethodManager(17662): START INPUT: com.android.internal.policy.impl.PhoneWindow$DecorView{425b41a0 V.E… R…I. 0,0-480,800} ic=null tba=android.view.inputmethod.EditorInfo@426c8720 controlFlags=#100
08-21 20:23:05.986: D/OpenGLRenderer(17662): prepareDirty (0.00, 0.00, 480.00, 800.00) opaque 1 <0x60a23008>
08-21 20:23:05.986: D/OpenGLRenderer(17662): finish <0x60a23008>