1.i used cocos2d-x 3.0 and google play game sdk c++, after with office step,i get bellow error.
error
09-07 23:12:19.170: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/PlayerLevel: an exception occurred.
09-07 23:12:19.170: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/PlayerLevelInfo: an exception occurred.
09-07 23:12:19.180: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/event/Event: an exception occurred.
09-07 23:12:19.180: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/event/EventBuffer: an exception occurred.
09-07 23:12:19.180: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/event/Events: an exception occurred.
09-07 23:12:19.180: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/event/Events$LoadEventsResult: an exception occurred.
09-07 23:12:19.230: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/quest/Quest: an exception occurred.
09-07 23:12:19.230: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/quest/QuestBuffer: an exception occurred.
09-07 23:12:19.230: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/quest/Quests: an exception occurred.
09-07 23:12:19.240: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/quest/Milestone: an exception occurred.
09-07 23:12:19.240: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/quest/Quests$LoadQuestsResult: an exception occurred.
09-07 23:12:19.250: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/quest/Quests$AcceptQuestResult: an exception occurred.
09-07 23:12:19.250: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/quest/Quests$ClaimMilestoneResult: an exception occurred.
09-07 23:12:19.250: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/snapshot/Snapshot: an exception occurred.
09-07 23:12:19.270: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/snapshot/SnapshotMetadata: an exception occurred.
09-07 23:12:19.270: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/snapshot/SnapshotMetadataBuffer: an exception occurred.
09-07 23:12:19.280: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/snapshot/Snapshots: an exception occurred.
09-07 23:12:19.280: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/snapshot/Snapshots$CommitSnapshotResult: an exception occurred.
09-07 23:12:19.280: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/snapshot/Snapshots$LoadSnapshotsResult: an exception occurred.
09-07 23:12:19.280: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/snapshot/Snapshots$OpenSnapshotResult: an exception occurred.
09-07 23:12:19.290: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/snapshot/SnapshotMetadataChange: an exception occurred.
09-07 23:12:19.290: E/GamesNativeSDK(5012): Can't register class com/google/android/gms/games/snapshot/SnapshotMetadataChange$Builder: an exception occurred.
09-07 23:12:19.300: W/dalvikvm(5012): dvmFindClassByName rejecting 'com/pkrss/cocos2d/SdkOperator'
09-07 23:12:19.410: I/GAV2(5012): Thread[main,5,main]: Initializing Game Services
09-07 23:12:19.410: I/GAV2(5012): Thread[main,5,main]: Uninitialized services, so creating
09-07 23:12:19.520: W/dalvikvm(5012): Link of class 'Lcom/google/android/gms/games/NativeSdkCallbacks;' failed
09-07 23:12:19.520: W/dalvikvm(5012): JNI WARNING: received null jclass
09-07 23:12:19.520: E/GamesNativeSDK(5012): Exception in dalvik/system/DexClassLoader.loadClass: java.lang.ClassNotFoundException: com.google.android.gms.games.NativeSdkCallbacks.
09-07 23:12:19.520: W/dalvikvm(5012): in Lcom/pkrss/cocos2d/wrapper;.nativeInitGPGS:(Landroid/app/Activity;)V (RegisterNatives)
09-07 23:12:19.520: I/dalvikvm(5012): "main" prio=5 tid=1 NATIVE
09-07 23:12:19.520: I/dalvikvm(5012): | group="main" sCount=0 dsCount=0 obj=0x40dfb6a0 self=0x408ea218
09-07 23:12:19.520: I/dalvikvm(5012): | sysTid=5012 nice=0 sched=0/0 cgrp=apps handle=1075221440
09-07 23:12:19.520: I/dalvikvm(5012): | schedstat=( 0 0 0 ) utm=39 stm=17 core=0
09-07 23:12:19.580: I/dalvikvm(5012): #00 pc 00001260 /system/lib/libcorkscrew.so (unwind_backtrace_thread+27)
09-07 23:12:19.580: I/dalvikvm(5012): #01 pc 0005f88c /system/lib/libdvm.so (dvmDumpNativeStack(DebugOutputTarget const*, int)+35)
09-07 23:12:19.580: I/dalvikvm(5012): #02 pc 0005401e /system/lib/libdvm.so (dvmDumpThreadEx(DebugOutputTarget const*, Thread*, bool)+289)
09-07 23:12:19.580: I/dalvikvm(5012): #03 pc 000540ae /system/lib/libdvm.so (dvmDumpThread(Thread*, bool)+25)
09-07 23:12:19.580: I/dalvikvm(5012): #04 pc 0003a33e /system/lib/libdvm.so
09-07 23:12:19.580: I/dalvikvm(5012): #05 pc 0003a612 /system/lib/libdvm.so
09-07 23:12:19.580: I/dalvikvm(5012): #06 pc 0003b58a /system/lib/libdvm.so
09-07 23:12:19.580: I/dalvikvm(5012): #07 pc 0003c100 /system/lib/libdvm.so
09-07 23:12:19.580: I/dalvikvm(5012): #08 pc 002c7958 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so
09-07 23:12:19.580: I/dalvikvm(5012): #09 pc 002c7e80 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so
09-07 23:12:19.580: I/dalvikvm(5012): #10 pc 002c4914 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (gpg::AndroidPlatformConfiguration::Valid() const+59)
09-07 23:12:19.580: I/dalvikvm(5012): #11 pc 0029a5a4 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (gpg::GameServices::Builder::Create(gpg::AndroidPlatformConfiguration const&)+39)
09-07 23:12:19.580: I/dalvikvm(5012): #12 pc 0023f9fe /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (_GpgSdkProxy::InitServices(gpg::AndroidPlatformConfiguration&)+189)
09-07 23:12:19.580: I/dalvikvm(5012): #13 pc 0023f910 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (Java_com_pkrss_cocos2d_wrapper_nativeInitGPGS+43)
09-07 23:12:19.580: I/dalvikvm(5012): #14 pc 0023f910 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (Java_com_pkrss_cocos2d_wrapper_nativeInitGPGS+43)
09-07 23:12:19.580: I/dalvikvm(5012): #15 pc 0023f910 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (Java_com_pkrss_cocos2d_wrapper_nativeInitGPGS+43)
09-07 23:12:19.580: I/dalvikvm(5012): #16 pc 0023f910 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (Java_com_pkrss_cocos2d_wrapper_nativeInitGPGS+43)
09-07 23:12:19.580: I/dalvikvm(5012): #17 pc 0023f910 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (Java_com_pkrss_cocos2d_wrapper_nativeInitGPGS+43)
09-07 23:12:19.580: I/dalvikvm(5012): #18 pc 0023f910 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (Java_com_pkrss_cocos2d_wrapper_nativeInitGPGS+43)
09-07 23:12:19.580: I/dalvikvm(5012): #19 pc 0023f910 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (Java_com_pkrss_cocos2d_wrapper_nativeInitGPGS+43)
09-07 23:12:19.580: I/dalvikvm(5012): #20 pc 0023f910 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (Java_com_pkrss_cocos2d_wrapper_nativeInitGPGS+43)
09-07 23:12:19.580: I/dalvikvm(5012): #21 pc 0023f910 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (Java_com_pkrss_cocos2d_wrapper_nativeInitGPGS+43)
09-07 23:12:19.580: I/dalvikvm(5012): #22 pc 0023f910 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (Java_com_pkrss_cocos2d_wrapper_nativeInitGPGS+43)
09-07 23:12:19.580: I/dalvikvm(5012): #23 pc 0023f910 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (Java_com_pkrss_cocos2d_wrapper_nativeInitGPGS+43)
09-07 23:12:19.580: I/dalvikvm(5012): #24 pc 0023f910 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (Java_com_pkrss_cocos2d_wrapper_nativeInitGPGS+43)
09-07 23:12:19.580: I/dalvikvm(5012): #25 pc 0023f910 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (Java_com_pkrss_cocos2d_wrapper_nativeInitGPGS+43)
09-07 23:12:19.580: I/dalvikvm(5012): #26 pc 0023f910 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (Java_com_pkrss_cocos2d_wrapper_nativeInitGPGS+43)
09-07 23:12:19.580: I/dalvikvm(5012): #27 pc 0023f910 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (Java_com_pkrss_cocos2d_wrapper_nativeInitGPGS+43)
09-07 23:12:19.580: I/dalvikvm(5012): #28 pc 0023f910 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (Java_com_pkrss_cocos2d_wrapper_nativeInitGPGS+43)
09-07 23:12:19.580: I/dalvikvm(5012): #29 pc 0023f910 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (Java_com_pkrss_cocos2d_wrapper_nativeInitGPGS+43)
09-07 23:12:19.580: I/dalvikvm(5012): #30 pc 0023f910 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (Java_com_pkrss_cocos2d_wrapper_nativeInitGPGS+43)
09-07 23:12:19.580: I/dalvikvm(5012): #31 pc 0023f910 /data/data/com.pkrss.snake/lib/libcocos2dcpp.so (Java_com_pkrss_cocos2d_wrapper_nativeInitGPGS+43)
09-07 23:12:19.580: I/dalvikvm(5012): at com.pkrss.cocos2d.wrapper.nativeInitGPGS(Native Method)
09-07 23:12:19.590: I/dalvikvm(5012): at com.pkrss.cocos2d.Cocos2dAppActivity.onCreate(Cocos2dAppActivity.java:17)
09-07 23:12:19.590: I/dalvikvm(5012): at com.pkrss.snake.AppActivity.onCreate(AppActivity.java:21)
09-07 23:12:19.590: I/dalvikvm(5012): at android.app.Activity.performCreate(Activity.java:5010)
09-07 23:12:19.600: I/dalvikvm(5012): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
09-07 23:12:19.600: I/dalvikvm(5012): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2036)
09-07 23:12:19.600: I/dalvikvm(5012): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2097)
09-07 23:12:19.600: I/dalvikvm(5012): at android.app.ActivityThread.access$600(ActivityThread.java:137)
09-07 23:12:19.600: I/dalvikvm(5012): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
09-07 23:12:19.600: I/dalvikvm(5012): at android.os.Handler.dispatchMessage(Handler.java:99)
09-07 23:12:19.600: I/dalvikvm(5012): at android.os.Looper.loop(Looper.java:137)
09-07 23:12:19.600: I/dalvikvm(5012): at android.app.ActivityThread.main(ActivityThread.java:4791)
09-07 23:12:19.600: I/dalvikvm(5012): at java.lang.reflect.Method.invokeNative(Native Method)
09-07 23:12:19.600: I/dalvikvm(5012): at java.lang.reflect.Method.invoke(Method.java:511)
09-07 23:12:19.600: I/dalvikvm(5012): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
09-07 23:12:19.600: I/dalvikvm(5012): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
09-07 23:12:19.600: I/dalvikvm(5012): at dalvik.system.NativeStart.main(Native Method)
09-07 23:12:19.600: E/dalvikvm(5012): VM aborting
09-07 23:12:19.600: A/libc(5012): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 5012 (main)
fixed:
upgrade newest google-play-services_lib,it is ok now.
No comments:
Post a Comment