phonegap Resource ID #0x0

奶奶的这个错误整了3个,有app生成执行的思路想,显示manifest配置,没错,

然后是。java文件,没错,然后再试layout,结果封装的phonegap没有用layout,

有xml文件目录要拷贝进来。只要把那个xml文件拷贝进来就可以了。

哎,还是要看下phonegap官网的使用说明的。自以为是到底不行啊,

 

03-10 21:28:43.046: E/AndroidRuntime(10946): FATAL EXCEPTION: main
03-10 21:28:43.046: E/AndroidRuntime(10946): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ningbin.yingxiao22/com.ningbin.yingxiao22.phonegapmain}: android.content.res.Resources$NotFoundException: Resource ID #0x0
03-10 21:28:43.046: E/AndroidRuntime(10946): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
03-10 21:28:43.046: E/AndroidRuntime(10946): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
03-10 21:28:43.046: E/AndroidRuntime(10946): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
03-10 21:28:43.046: E/AndroidRuntime(10946): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
03-10 21:28:43.046: E/AndroidRuntime(10946): at android.os.Handler.dispatchMessage(Handler.java:99)
03-10 21:28:43.046: E/AndroidRuntime(10946): at android.os.Looper.loop(Looper.java:123)
03-10 21:28:43.046: E/AndroidRuntime(10946): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-10 21:28:43.046: E/AndroidRuntime(10946): at java.lang.reflect.Method.invokeNative(Native Method)
03-10 21:28:43.046: E/AndroidRuntime(10946): at java.lang.reflect.Method.invoke(Method.java:521)
03-10 21:28:43.046: E/AndroidRuntime(10946): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
03-10 21:28:43.046: E/AndroidRuntime(10946): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
03-10 21:28:43.046: E/AndroidRuntime(10946): at dalvik.system.NativeStart.main(Native Method)
03-10 21:28:43.046: E/AndroidRuntime(10946): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0
03-10 21:28:43.046: E/AndroidRuntime(10946): at android.content.res.Resources.getValue(Resources.java:892)
03-10 21:28:43.046: E/AndroidRuntime(10946): at android.content.res.Resources.loadXmlResourceParser(Resources.java:1869)
03-10 21:28:43.046: E/AndroidRuntime(10946): at android.content.res.Resources.getXml(Resources.java:780)
03-10 21:28:43.046: E/AndroidRuntime(10946): at com.phonegap.api.PluginManager.loadPlugins(PluginManager.java:54)
03-10 21:28:43.046: E/AndroidRuntime(10946): at com.phonegap.api.PluginManager.<init>(PluginManager.java:45)
03-10 21:28:43.046: E/AndroidRuntime(10946): at com.phonegap.DroidGap.bindBrowser(DroidGap.java:285)
03-10 21:28:43.046: E/AndroidRuntime(10946): at com.phonegap.DroidGap.init(DroidGap.java:249)
03-10 21:28:43.046: E/AndroidRuntime(10946): at com.phonegap.DroidGap.handleActivityParameters(DroidGap.java:297)
03-10 21:28:43.046: E/AndroidRuntime(10946): at com.phonegap.DroidGap.access$000(DroidGap.java:117)
03-10 21:28:43.046: E/AndroidRuntime(10946): at com.phonegap.DroidGap$1.run(DroidGap.java:344)
03-10 21:28:43.046: E/AndroidRuntime(10946): at android.app.Activity.runOnUiThread(Activity.java:3707)
03-10 21:28:43.046: E/AndroidRuntime(10946): at com.phonegap.DroidGap.loadUrl(DroidGap.java:340)
03-10 21:28:43.046: E/AndroidRuntime(10946): at com.ningbin.yingxiao22.phonegapmain.onCreate(phonegapmain.java:12)
03-10 21:28:43.046: E/AndroidRuntime(10946): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-10 21:28:43.046: E/AndroidRuntime(10946): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
03-10 21:28:43.046: E/AndroidRuntime(10946): ... 11 more

你可能感兴趣的:(PhoneGap)