在运行Android ADT 20的Indigo上,Phonegap应用程序意外停止

在运行Android ADT 20的Indigo上,Phonegap应用程序意外停止,第1张

概述我正在使用 eclipse indigo和 android ADT 20,但每次都显示错误,应用程序意外停止. 请任何人知道如何将它们互相使用? 我也提到了一些google groupe,它显示了更新ecllipse,我也遵循了但仍然无法正常工作.先谢谢…… 日志: 07-27 16:48:04.958: D/ddm-heap(217): Got feature list request07-2 我正在使用 eclipse indigo和 android ADT 20,但每次都显示错误,应用程序意外停止.
请任何人知道如何将它们互相使用?
我也提到了一些Google groupe,它显示了更新ecllipse,我也遵循了但仍然无法正常工作.先谢谢……

日志:

07-27 16:48:04.958: D/ddm-heap(217): Got feature List request07-27 16:48:05.328: I/dalvikvm(217): Could not find method androID.webkit.WebVIEw.<init>,referenced from method org.apache.cordova.CordovaWebVIEw.<init>07-27 16:48:05.328: W/dalvikvm(217): VFY: unable to resolve direct method 3114: LandroID/webkit/WebVIEw;.<init> (LandroID/content/Context;LandroID/util/AttributeSet;IZ)V07-27 16:48:05.328: D/dalvikvm(217): VFY: replacing opcode 0x70 at 0x000107-27 16:48:05.328: D/dalvikvm(217): Making a copy of Lorg/apache/cordova/CordovaWebVIEw;.<init> code (196 bytes)07-27 16:48:05.658: D/dalvikvm(217): GC freed 807 objects / 63672 bytes in 104ms07-27 16:48:05.948: E/dalvikvm(217): Could not find class 'androID.webkit.WebResourceResponse',referenced from method org.apache.cordova.CordovaWebVIEwClIEnt.generateWebResourceResponse07-27 16:48:05.958: W/dalvikvm(217): VFY: unable to resolve new-instance 451 (LandroID/webkit/WebResourceResponse;) in Lorg/apache/cordova/CordovaWebVIEwClIEnt;07-27 16:48:05.958: D/dalvikvm(217): VFY: replacing opcode 0x22 at 0x004607-27 16:48:05.958: D/dalvikvm(217): Making a copy of Lorg/apache/cordova/CordovaWebVIEwClIEnt;.generateWebResourceResponse code (245 bytes)07-27 16:48:05.958: W/dalvikvm(217): VFY: unable to find class referenced in signature (LandroID/webkit/WebResourceResponse;)07-27 16:48:05.998: W/dalvikvm(217): VFY: unable to find class referenced in signature (LandroID/webkit/WebResourceResponse;)07-27 16:48:06.014: W/dalvikvm(217): VFY: unable to find class referenced in signature (LandroID/webkit/WebResourceResponse;)07-27 16:48:06.014: I/dalvikvm(217): Could not find method androID.webkit.WebVIEwClIEnt.shouldInterceptRequest,referenced from method org.apache.cordova.CordovaWebVIEwClIEnt.shouldInterceptRequest07-27 16:48:06.014: W/dalvikvm(217): VFY: unable to resolve virtual method 3125: LandroID/webkit/WebVIEwClIEnt;.shouldInterceptRequest (LandroID/webkit/WebVIEw;Ljava/lang/String;)LandroID/webkit/WebResourceResponse;07-27 16:48:06.014: D/dalvikvm(217): VFY: replacing opcode 0x6f at 0x001507-27 16:48:06.014: D/dalvikvm(217): Making a copy of Lorg/apache/cordova/CordovaWebVIEwClIEnt;.shouldInterceptRequest code (68 bytes)07-27 16:48:06.018: W/dalvikvm(217): VFY: unable to find class referenced in signature (LandroID/webkit/ConsoleMessage;)07-27 16:48:06.018: I/dalvikvm(217): Could not find method androID.webkit.ConsoleMessage.message,referenced from method org.apache.cordova.CordovaChromeClIEnt.onConsoleMessage07-27 16:48:06.018: W/dalvikvm(217): VFY: unable to resolve virtual method 3084: LandroID/webkit/ConsoleMessage;.message ()Ljava/lang/String;07-27 16:48:06.018: D/dalvikvm(217): VFY: replacing opcode 0x6e at 0x000007-27 16:48:06.028: D/dalvikvm(217): Making a copy of Lorg/apache/cordova/CordovaChromeClIEnt;.onConsoleMessage code (56 bytes)07-27 16:48:06.038: W/System.err(217): =====================================================================================07-27 16:48:06.056: W/System.err(217): ERROR: plugin.xml is missing.  Add res/xml/plugins.xml to your project.07-27 16:48:06.056: W/System.err(217): https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-androID.git;a=blob;f=framework/res/xml/plugins.xml07-27 16:48:06.056: W/System.err(217): =====================================================================================07-27 16:48:06.056: W/ResourceType(217): No package IDentifIEr when getting name for resource number 0x0000000007-27 16:48:06.058: D/AndroIDRuntime(217): Shutting down VM07-27 16:48:06.058: W/dalvikvm(217): threadID=3: thread exiting with uncaught exception (group=0x4001b188)07-27 16:48:06.058: E/AndroIDRuntime(217): Uncaught handler: thread main exiting due to uncaught exception07-27 16:48:06.078: E/AndroIDRuntime(217): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.testdemo/com.example.testdemo.MainActivity}: androID.content.res.Resources$NotFoundException: Resource ID #0x007-27 16:48:06.078: E/AndroIDRuntime(217):  at androID.app.ActivityThread.performlaunchActivity(ActivityThread.java:2496)07-27 16:48:06.078: E/AndroIDRuntime(217):  at androID.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)07-27 16:48:06.078: E/AndroIDRuntime(217):  at androID.app.ActivityThread.access00(ActivityThread.java:119)07-27 16:48:06.078: E/AndroIDRuntime(217):  at androID.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)07-27 16:48:06.078: E/AndroIDRuntime(217):  at androID.os.Handler.dispatchMessage(Handler.java:99)07-27 16:48:06.078: E/AndroIDRuntime(217):  at androID.os.Looper.loop(Looper.java:123)07-27 16:48:06.078: E/AndroIDRuntime(217):  at androID.app.ActivityThread.main(ActivityThread.java:4363)07-27 16:48:06.078: E/AndroIDRuntime(217):  at java.lang.reflect.Method.invokeNative(Native Method)07-27 16:48:06.078: E/AndroIDRuntime(217):  at java.lang.reflect.Method.invoke(Method.java:521)07-27 16:48:06.078: E/AndroIDRuntime(217):  at com.androID.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)07-27 16:48:06.078: E/AndroIDRuntime(217):  at com.androID.internal.os.ZygoteInit.main(ZygoteInit.java:618)07-27 16:48:06.078: E/AndroIDRuntime(217):  at dalvik.system.NativeStart.main(Native Method)07-27 16:48:06.078: E/AndroIDRuntime(217): Caused by: androID.content.res.Resources$NotFoundException: Resource ID #0x007-27 16:48:06.078: E/AndroIDRuntime(217):  at androID.content.res.Resources.getValue(Resources.java:891)07-27 16:48:06.078: E/AndroIDRuntime(217):  at androID.content.res.Resources.loadXmlResourceParser(Resources.java:1865)07-27 16:48:06.078: E/AndroIDRuntime(217):  at androID.content.res.Resources.getXml(Resources.java:779)07-27 16:48:06.078: E/AndroIDRuntime(217):  at org.apache.cordova.API.PluginManager.loadplugins(PluginManager.java:99)07-27 16:48:06.078: E/AndroIDRuntime(217):  at org.apache.cordova.API.PluginManager.init(PluginManager.java:76)07-27 16:48:06.078: E/AndroIDRuntime(217):  at org.apache.cordova.CordovaWebVIEw.loadUrlintoVIEw(CordovaWebVIEw.java:361)07-27 16:48:06.078: E/AndroIDRuntime(217):  at org.apache.cordova.CordovaWebVIEw.loadUrl(CordovaWebVIEw.java:314)07-27 16:48:06.078: E/AndroIDRuntime(217):  at org.apache.cordova.DroIDGap.loadUrl(DroIDGap.java:356)07-27 16:48:06.078: E/AndroIDRuntime(217):  at com.example.testdemo.MainActivity.onCreate(MainActivity.java:12)07-27 16:48:06.078: E/AndroIDRuntime(217):  at androID.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)07-27 16:48:06.078: E/AndroIDRuntime(217):  at androID.app.ActivityThread.performlaunchActivity(ActivityThread.java:2459)07-27 16:48:06.078: E/AndroIDRuntime(217):  ... 11 more07-27 16:48:06.098: I/dalvikvm(217): threadID=7: reacting to signal 307-27 16:48:06.098: E/dalvikvm(217): Unable to open stack trace file '/data/anr/traces.txt': Permission denIEd07-27 16:48:08.998: I/Process(217): Sending signal. PID: 217 SIG: 9
解决方法 出现此问题的原因是“人员”现在将“lib”文件夹重命名为“libs”. 您需要创建一个libs文件夹而不是lib,然后将cordova.jar文件放在那里. 只要我们将外部jar放到这个“libs”文件夹中,它就会自动添加到应用程序的构建路径中.然后运行你的应用…. 如果这有助于你,请告诉我…… 总结

以上是内存溢出为你收集整理的在运行Android ADT 20的Indigo上,Phonegap应用程序意外停止全部内容,希望文章能够帮你解决在运行Android ADT 20的Indigo上,Phonegap应用程序意外停止所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1127180.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存