我尝试运行谷歌的ButtonClick
示例,我得到了这个例外:
10-12 15:50:22.744 7085-7085/com.google.example.games.bc E/﹕ Device driver API match
Device driver API version: 23
User space API version: 23
10-12 15:50:22.744 7085-7085/com.google.example.games.bc E/﹕ mali: REVISION=Linux-r3p2-01rel3 BUILD_DATE=Wed Oct 9 21:05:57 KST 2013
10-12 15:50:23.049 7085-7085/com.google.example.games.bc E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.IllegalStateException: A fatal developer error has occurred. Check the logs for further information.
at com.google.android.gms.internal.id$h.b(Unknown Source)
at com.google.android.gms.internal.id$h.e(Unknown Source)
at com.google.android.gms.internal.id$b.fv(Unknown Source)
at com.google.android.gms.internal.id$a.handleMessage(Unknown Source)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5419)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
at dalvik.system.NativeStart.main(Native Method)
我从Git project(谷歌)改变了一切。
有任何线索吗?
提前致谢。
答案 0 :(得分:1)
发现它!
在AndroidManifest.xml
中, 标记位于:
<meta-data android:name="com.google.android.gms.games.APP_ID"
android:value="ReplaceMe" />
strings.xml
中有一个string
资源:
<string name="app_id">ReplaceMe</string>
应将 ReplaceMe :)替换为app ID
中的google play console
。
答案 1 :(得分:0)
如果您不想支付google play console
,可以在<string name="app_id">1</string>
strings.xml