亚马逊gamecircle登录无法正常工作

时间:2016-08-17 23:40:19

标签: android unity3d amazon amazon-gamecircle

我正在努力让亚马逊GameCircle为排行榜和成就而努力。

这就是我的所作所为:

  1. 我按照有关如何通过从密钥库中提取md5哈希来创建游戏配置的说明进行操作。 (我只有一个密钥库)

  2. 我使用了unity gamecircle包提供的游戏清单并替换了包名。

  3. 我下载了api_key.txt并将其放在assets文件夹中。

  4. 我附上了安全档案。

    当我直接安装时,GameCircle使用apk,但是当通过亚马逊应用商店下载时无效。

    我有什么遗忘或其他任何我可以尝试的东西吗?

    这是关于gamecircle的logcat消息:

    D/GameCircleClient(21312): SDK Version: 2.4.3
    D/com.amazon.identity.auth.map.device.utils.MAPLog.PII(21312): Extracting verison incremental:<obscured>
    D/com.amazon.identity.auth.map.device.utils.MAPLog.PII(21312): Incremental version '%s' was in invalid format.:<obscured>
    D/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager.PII(21312): AmazonAuthorizationManager:sdkVer=2.0.1 libVer=3.5.1:<obscured>
    I/com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager(21312): Options bundle is null
    I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(21312): getAppInfo : packageName=com.Senshu.HanabiParty
    I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(21312): getAppInfoFromAPIKey : packageName=com.Senshu.HanabiParty
    I/com.amazon.identity.auth.device.appid.AbstractAppIdentifier(21312): Finding API Key for com.Senshu.HanabiParty
    I/com.amazon.identity.auth.device.utils.ThirdPartyResourceParser(21312): Attempting to parse API Key from assets directory
    I/com.amazon.identity.auth.device.appid.APIKeyDecoder(21312): Begin decoding API Key for packageName=com.Senshu.HanabiParty
    I/com.amazon.identity.auth.device.appid.APIKeyDecoder(21312): getKeyParts for packageName=com.Senshu.HanabiParty
    D/com.amazon.identity.auth.device.appid.APIKeyDecoder.PII(21312): APIKey:<obscured>
    I/com.amazon.identity.auth.device.appid.APIKeyDecoder(21312): verifySignature for packageName=com.Senshu.HanabiParty
    I/com.amazon.identity.auth.device.appid.APIKeyDecoder(21312): verifySignature Sha256 for packageName=com.Senshu.HanabiParty
    I/com.amazon.identity.auth.device.appid.APIKeyDecoder(21312): verifyPayload for packageName=com.Senshu.HanabiParty
    W/com.amazon.identity.auth.device.appid.APIKeyDecoder(21312): Failed to decode: No value for appsig
    W/com.amazon.identity.auth.device.appid.APIKeyDecoder(21312): Unable to decode APIKEy for pkg=com.Senshu.HanabiParty
    E/GameCircleClient(21312): Unable to read api key.  GameCircle requires an api key to be included in 'assets/api_key.txt'.  GameCircle will not initialize.
    E/GameCircleClient(21312): java.lang.IllegalArgumentException: Invalid API Key
    E/GameCircleClient(21312):  at com.amazon.identity.auth.device.authorization.api.AmazonAuthorizationManager.<init>(AmazonAuthorizationManager.java:133)
    E/GameCircleClient(21312):  at com.amazon.ags.api.AmazonGamesClient.initialize(AmazonGamesClient.java:144)
    E/GameCircleClient(21312):  at com.amazon.ags.api.unity.AmazonGamesClientProxyImpl$1.run(AmazonGamesClientProxyImpl.java:68)
    E/GameCircleClient(21312):  at android.os.Handler.handleCallback(Handler.java:739)
    E/GameCircleClient(21312):  at android.os.Handler.dispatchMessage(Handler.java:95)
    E/GameCircleClient(21312):  at android.os.Looper.loop(Looper.java:145)
    E/GameCircleClient(21312):  at android.app.ActivityThread.main(ActivityThread.java:6837)
    E/GameCircleClient(21312):  at java.lang.reflect.Method.invoke(Native Method)
    E/GameCircleClient(21312):  at java.lang.reflect.Method.invoke(Method.java:372)
    E/GameCircleClient(21312):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
    E/GameCircleClient(21312):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
    E/Whispersync(21312): Whispersync client has not been initialized.  Please call AmazonGames.initialize()
    E/WS_WhispersyncClientProxyImpl(21312): Whispersync client is null. Cannot set event listener. Please call initialize for AmazonGames.
    W/ActivityManager( 3517): getRunningAppProcesses: caller 10605 does not hold REAL_GET_TASKS; limiting output
    I/Unity   (21312): AmazonGameCircle: GameCircleManager - serviceNotReady
    I/Unity   (21312):  
    I/Unity   (21312): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
    I/Unity   (21312): 
    I/Unity   (21312): Amazon GameCircle Service is not ready
    I/Unity   (21312):  
    I/Unity   (21312): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
    

1 个答案:

答案 0 :(得分:0)

我有一个类似的错误,APIKeyDecoder无法解析我的应用程序签名。它通过手动将login-with-amason-sdk.jar升级到最新版本来修复,因为它们还没有发布maven坐标。另请注意,现在他们不使用md5签名,甚至不使用sha1,他们使用sha256。