我正在尝试调试应用程序引擎连接的android启动应用程序但是当我通过我的手机选择帐户(android 2.3.6并在教程后面的appengine上部署应用程序)它显示这些错误并提示强制关闭应用程序。 这是logcat:
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
构建ID:20120216-1857
ADT 18.0.0
app engine 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) }
请帮助我,我必须使用app引擎,但在此之前,此示例应该在真实设备上运行。
答案 0 :(得分:1)
我不知道您使用的是哪个“教程”。使用ADT 18,您将无法运行此处http://bradabrams.com/2011/05/google-io-session-overview-android-app-engine-a-developers-dream-combination/
请按照此处的说明操作: https://developers.google.com/eclipse/docs/appeng_android_install_setup
另外,请务必注册c2dm服务:https://developers.google.com/android/c2dm/signup,我认为这是您的实际问题。我相信在测试时,您必须使用您在手机和本地App Engine服务器上注册时使用的帐户登录。
您是自定义文件,还是试图开箱即用测试c2dm服务?