开始的PhoneGap Android项目 [英] Starting Android project with PhoneGap

查看:144
本文介绍了开始的PhoneGap Android项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开始与PhoneGap的Andr​​oid应用程序。我按照 YouTube视频的,当我点击运行按钮,它让我看到下面的错误。

I am trying to start an Android app with PhoneGap. I follow YouTube video and when I hit the run button It shows me the following errors.

12-03 18:45:52.704: E/AndroidRuntime(27214): java.lang.RuntimeException: Unable to start activity ComponentInfo{tpl.apps.UKTrains/tpl.apps.UKTrains.Main}: android.content.res.Resources$NotFoundException: Resource ID #0x0
12-03 18:45:52.704: E/AndroidRuntime(27214):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2705)
12-03 18:45:52.704: E/AndroidRuntime(27214):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2721)
12-03 18:45:52.704: E/AndroidRuntime(27214):    at android.app.ActivityThread.access$2300(ActivityThread.java:132)
12-03 18:45:52.704: E/AndroidRuntime(27214):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2071)
12-03 18:45:52.704: E/AndroidRuntime(27214):    at android.os.Handler.dispatchMessage(Handler.java:99)
12-03 18:45:52.704: E/AndroidRuntime(27214):    at android.os.Looper.loop(Looper.java:123)

然后我试图运行它们的示例应用程序之一的手机信息和东西。它工作正常,我按照示例应用程序做了一些其他的变化,但它仍然是行不通的。

Then I tried to run their example app the one with the phone informations and stuffs. It is working fine and I made some other changes according to sample app but it is still not working.

你有什么想法可能是什么?
谢谢你。

Do you have any idea what it could be? Thanks.

推荐答案

我只是证实了ONUR已经写:有文件phonegap.xml(被称为cordova.xml现在,经过的PhoneGap成为Apache的科尔多瓦项目)和plugin.xml中,你不断收到上面,直到你在res / XML文件夹中提供这两个文件的错误。

I just confirm what Onur already wrote: there are files phonegap.xml (called cordova.xml right now, after Phonegap became Apache Cordova project) and plugin.xml, and you keep getting the error above until you provide these two files in res/xml folder.

我已经克隆的同时我的PhoneGap项目用0.9-东西版本构建,以及PhoneGap的文件升级到1.2或1.5科尔多瓦碰到的问题。

I had run into the problem while cloning my Phonegap project built with 0.9-something release, and upgrading the Phonegap files to 1.2, or Cordova 1.5.

很显然,我没有给予足够的重视更新日志文件,因为有需要0.9X版本中没有的XML文件。

Obviously I didn't pay enough attention to "changelog" files, because there were no XML files needed for 0.9x release.

这篇关于开始的PhoneGap Android项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆