我正在尝试调试应用引擎连接的 android starter 应用程序,但是当我在手机上选择帐户(android 2.3.6 并按照教程在 appengine 上部署应用程序)时,它会显示这些错误并提示强制关闭应用程序。这是日志猫:
06-09 13:00:07.781: D/dalvikvm(14321): GC_CONCURRENT freed 76K, 44% free 3311K/5831K, external 518K/1030K, paused 3ms+3ms
06-09 13:00:08.007: I/global(14321): Loaded time zone names for en_US in 1308ms.
06-09 13:00:08.398: W/dalvikvm(14321): threadid=9: thread exiting with uncaught exception (group=0x40018578)
06-09 13:00:08.429: E/AndroidRuntime(14321): FATAL EXCEPTION: IntentService[my_registered_c2dm_id@gmail.com]
06-09 13:00:08.429: E/AndroidRuntime(14321): java.lang.RuntimeException: The RequestFactory ValidationTool must be run for the com.testtasker.client.MyRequestFactory RequestFactory type
06-09 13:00:08.429: E/AndroidRuntime(14321): at com.google.web.bindery.requestfactory.vm.impl.Deobfuscator$Builder.load(Deobfuscator.java:59)
06-09 13:00:08.429: E/AndroidRuntime(14321): at com.google.web.bindery.requestfactory.vm.InProcessRequestFactory.<init>(InProcessRequestFactory.java:80)
06-09 13:00:08.429: E/AndroidRuntime(14321): at com.google.web.bindery.requestfactory.vm.RequestFactorySource.create(RequestFactorySource.java:43)
06-09 13:00:08.429: E/AndroidRuntime(14321): at com.testtasker.Util.getRequestFactory(Util.java:158)
06-09 13:00:08.429: E/AndroidRuntime(14321): at com.testtasker.DeviceRegistrar.getRequest(DeviceRegistrar.java:107)
06-09 13:00:08.429: E/AndroidRuntime(14321): at com.testtasker.DeviceRegistrar.registerOrUnregister(DeviceRegistrar.java:54)
06-09 13:00:08.429: E/AndroidRuntime(14321): at com.testtasker.C2DMReceiver.onRegistered(C2DMReceiver.java:46)
06-09 13:00:08.429: E/AndroidRuntime(14321): at com.google.android.c2dm.C2DMBaseReceiver.handleRegistration(C2DMBaseReceiver.java:191)
06-09 13:00:08.429: E/AndroidRuntime(14321): at com.google.android.c2dm.C2DMBaseReceiver.onHandleIntent(C2DMBaseReceiver.java:110)
06-09 13:00:08.429: E/AndroidRuntime(14321): at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:59)
06-09 13:00:08.429: E/AndroidRuntime(14321): at android.os.Handler.dispatchMessage(Handler.java:99)
06-09 13:00:08.429: E/AndroidRuntime(14321): at android.os.Looper.loop(Looper.java:130)
06-09 13:00:08.429: E/AndroidRuntime(14321): at android.os.HandlerThread.run(HandlerThread.java:60)
我在google和stackoverflow上搜索了很多,但无法解决错误。我没有更改启动代码中的单个字符,那么为什么它没有运行。
当我尝试通过模拟器(如教程中所述)时,它会给出 PHONE_REGISTRATION_ERROR。
使用的软件:面向 Web 开发人员的 Eclipse Java EE IDE。
eclipse平台3.7.2
版本:Indigo Service Release 2
Build id:20120216-1857
ADT 18.0.0
应用引擎 java sdk1.6.6
gwt sdk 2.4.0
这是调试堆栈:
DalvikVM[localhost:8600]
Thread [<1> main] (Running)
Thread [<8> Binder Thread #2] (Running)
Thread [<7> Binder Thread #1] (Running)
Thread [<9> IntentService[my_registered_c2dm_id@gmail.com]] (Suspended (exception RuntimeException))
C2DMReceiver(C2DMBaseReceiver).onHandleIntent(Intent) line: 124
IntentService$ServiceHandler.handleMessage(Message) line: 59
IntentService$ServiceHandler(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 130
HandlerThread.run() line: 60
单击线程 9 变量时,它会显示:
com.testtasker.C2DMReceiver@4052c3e8
Intent { act=com.google.android.c2dm.intent.REGISTRATION cat=[com.testtasker]
cmp=com.testtasker/.C2DMReceiver (has extras) }
请帮助我,我必须使用应用程序引擎,但在此之前,此示例应在真实设备上运行。