[英]Phonegap + Eclipse + Cordova — No config.xml
I just created an Android Project in Eclipse with all the phonegap and cordova files as expected. 我刚刚在Eclipse中使用预期的所有phonegap和cordova文件创建了一个Android项目。 However, I have no such directory, and thus, no config.xml.
但是,我没有这样的目录,因此也没有config.xml。 According to the Apache Cordova documentation, it is supposed to be located at: app/res/xml/config.xml.
根据Apache Cordova文档,它应该位于:app / res / xml / config.xml。
My folder structure is as follows, for the /res directory: 对于/ res目录,我的文件夹结构如下:
/res/drawable-hdpi
/res/drawable-ldpi
/res/drawable-mdpi
/res/drawable-mdpi
/res/layout
- /res/layout/main.xml
/res/values
- /res/layout/strings.xml
What have I done wrong or what step am I missing? 我做错了什么或我错过了哪一步? I hope I have provided enough information.
我希望我提供了足够的信息。
Just create the /res/xml/ folder manually. 只需手动创建/ res / xml /文件夹。 Then create config.xml using a text editor and use this as a template: https://github.com/phonegap/phonegap/blob/master/lib/android/xml/config.xml
然后使用文本编辑器创建config.xml并将其用作模板: https : //github.com/phonegap/phonegap/blob/master/lib/android/xml/config.xml
Whenever we create a cordova project, config.xml
gets created automatically. 每当我们创建cordova项目时,都会自动创建
config.xml
。 We need to check if there is any folder in excluded list. 我们需要检查排除列表中是否有任何文件夹。
Go to Build path
-> Resources
-> Check for excluded resources. 转到
Build path
-> Resources
->检查排除的资源。
Remove them from the project and build the project. 从项目中删除它们并构建项目。 You will be able to view the
config.xml
and www
folder in the Project/Package Explorer
. 您将能够在
Project/Package Explorer
查看config.xml
和www
文件夹。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.