我可能只是没有找到正确的链接,但我在这里挣扎。
首先,正如标题所说,我在尝试使用 AppStateClient.connect 来使用“游戏”云存储服务时遇到 ClassNotFoundException 错误。我(据我所知)已正确完成帐户设置和清单修改。
我已将 google-play-services.jar 置于 order/export 构建路径区域中,并将其移至最高优先级。
在我的运行 Paranoid Android 3.65 (=Android 4.2.2) 的 Nexus 7 上进行调试,它确实运行了 Google Play 服务进程 (v3.1.59 (736673-30))。环境是 ADT Bundle v22.0.1
堆栈跟踪显示如下:
Thread [<1> main] (Suspended (exception ClassNotFoundException))
<VM does not provide monitor information>
PathClassLoader(BaseDexClassLoader).findClass(String) line: 65
PathClassLoader(ClassLoader).loadClass(String, boolean) line: 501
PathClassLoader(ClassLoader).loadClass(String) line: 461
e(p).connect() line: not available
AppStateClient.connect() line: not available
PGA4DetailFragment.connect() line: 137
PGA4DetailFragment.onStart() line: 123
PGA4DetailFragment(Fragment).performStart() line: 1484
FragmentManagerImpl.moveToState(Fragment, int, int, int, boolean) line: 941
FragmentManagerImpl.moveToState(int, int, int, boolean) line: 1088
BackStackRecord.run() line: 682
FragmentManagerImpl.execPendingActions() line: 1444
FragmentManagerImpl$1.run() line: 429
Handler.handleCallback(Message) line: 725
FragmentActivity$1(Handler).dispatchMessage(Message) line: 92
Looper.loop() line: 137
ActivityThread.main(String[]) line: 5230
Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 525
ZygoteInit$MethodAndArgsCaller.run() line: 799
ZygoteInit.main(String[]) line: 566
请帮忙!谢谢