当我手动为我正在开发的应用程序安装APK时,我无法登录到Google。屏幕上没有错误,但我知道它失败了,因为Google服务没有一个工作,一个“连接”属性是假的。
我用亚行catlog连接到正在运行的应用程序,并注意到这个似乎相关的错误:
E/SignInIntentService( 1266): Access Not Configured. Please use Google Developer
s Console to activate the API for your project.
E/SignInIntentService( 1266): dix
E/SignInIntentService( 1266): at dec.a(SourceFile:151)
E/SignInIntentService( 1266): at cqe.a(SourceFile:331)
E/SignInIntentService( 1266): at cqe.a(SourceFile:312)
E/SignInIntentService( 1266): at cph.a(SourceFile:634)
E/SignInIntentService( 1266): at djo.a(SourceFile:250)
E/SignInIntentService( 1266): at com.google.android.gms.games.service.GamesSig
nInIntentService.onHandleIntent(SourceFile:389)
E/SignInIntentService( 1266): at android.app.IntentService$ServiceHandler.hand
leMessage(IntentService.java:65)
E/SignInIntentService( 1266): at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/SignInIntentService( 1266): at android.os.Looper.loop(Looper.java:137)
E/SignInIntentService( 1266): at android.os.HandlerThread.run(HandlerThread.ja
va:61)
E/LoadSelfFragment(16340): Unable to sign in - application does not have a regis
tered client ID
W/SignInActivity(16340): onSignInFailed()...
W/SignInActivity(16340): ==> Returning non-OK result: 10004
在这里可以找到完整的日志:http://pastebin.com/KDFbJ4un
当我从Xamarin运行这个应用程序时,我可以在Google服务中注册,没有任何问题。然而,现在我想测试应用程序中的计费,我认为这要求我运行已签名的APK,我上传了Android开发者控制台,所以我正在手动安装APK。
有什么特别的事情,我需要做,以使我的支持应用程序连接到谷歌游戏?是否有更好的方法来测试在Xamarin Studio中的应用程序计费?
发布于 2014-03-08 23:49:05
我玩了一天左右,终于开始工作了。我尝试了很多不同的事情,所以我不能百分之百地确定是什么解决了这个问题,但我认为这就是我所做的:
我在我的android清单文件中添加了以下内容:
<uses-permission android:name="com.android.vending.INTERACT_ACROSS_USERS_FULL" />
我这样做是因为我在logcat中注意到了另一个错误:
W/ActivityManager( 465):权限拒绝:用户的get/set设置请求将ru n作为user -2进行调用,但从用户0调用;这需要android.permission.INTERACT_ACROSS_USERS_FULL
我认为这是因为我在我的手机上增加了多个google+用户(用来测试应用程序内的购买)。
发布于 2014-03-07 00:34:45
难道不是因为签名密钥或包名在Google控制台中没有权限吗?
您需要在控制台中签名,将SHA1添加到您的密钥和应用程序的包名中。你可以得到的SHA1
keytool -exportcert -alias androiddebugkey -keystore <path-to-debug-or-production-keystore> -list -v
在Mac和Linux上调试keystore的路径位于名为.android
:~/.android/debug.keystore
的隐藏目录中的主目录中,密码是android
在%USERPROFILE%\.android\debug.keystore
,但我没有要验证的Windows。
https://stackoverflow.com/questions/22238894
复制相似问题