我试着遵循这条指令: http://wiki.phonegap.com/w/page/16494774/Getting-started-with-Android-PhoneGap-in-Eclipse
我可以运行该示例,但是当我点击“Beep”按钮或任何按钮时,它在“adb logcat”中出错,就像这样,应用程序崩溃了:
D/dalvikvm( 387): GC_EXPLICIT freed 115K, 52% free 2656K/5447K, external 2075K/
2792K, paused 4856ms
I/BootReceiver( 68): Copying /data/tombstones/tombstone_07 to DropBox (SYSTEM_
TOMBSTONE)
I/DEBUG ( 30): debuggerd committing suicide to free the zombie!
D/Zygote ( 32): Process 425 terminated by signal (11)
I/ActivityManager( 68): Process com.PhoneGap3 (pid 425) has died.
I/WindowManager( 68): WIN DEATH: Window{406acdf0 com.PhoneGap3/com.PhoneGap3.P
honeGap3 paused=false}
I/InputDispatcher( 68): Dropping event because there is no touched window or f
ocused application.
I/DEBUG ( 440): debuggerd: Nov 24 2010 13:31:11
D/dalvikvm( 68): GC_CONCURRENT freed 957K, 48% free 4497K/8583K, external 2062
K/2576K, paused 46ms+19ms
D/dalvikvm( 68): GC_FOR_MALLOC freed 373K, 46% free 4635K/8583K, external 2062
K/2576K, paused 340ms
I/dalvikvm-heap( 68): Grow heap (frag case) to 9.291MB for 196628-byte allocat
ion
D/dalvikvm( 68): GC_FOR_MALLOC freed <1K, 46% free 4826K/8839K, external 2062K
/2576K, paused 231ms
W/InputManagerService( 68): Got RemoteException sending setActive(false) notif
ication to pid 425 uid 10040
有人可以帮忙吗?感谢。
答案 0 :(得分:0)
如果在项目创建阶段出现问题,请查看http://wiki.phonegap.com/w/page/34483744/PhoneGap-Eclipse-PlugIn-for-Android所描述的插件将自动配置和构建示例,并且应该是一种更简单的启动体验。