Cordova / Phonegap不生成Assets / WWW文件夹

时间:2013-06-04 17:06:35

标签: android ios cordova

我尝试过使用Cordova 2.4& 2.7无济于事。在控制台中使用create方法时,该项目似乎构建正常,但它不会创建整个程序结构。缺少www文件夹(或资产?)。

enter image description here

当我在Eclipse中打开项目时,我可以在左侧边栏窗格中看到assets文件夹,但没有子项(它是空的)。

默认应用程序构建并运行正常(它只是说“Hello World,App”)。

enter image description here

我应该注意到我也在cygwin尝试了这个,但它出现了错误。

An unexpected error occurred: ANDROID_BIN="${ANDROID_BIN:=$( which android )}" exited with 1
Deleting project...

enter image description here

我使用的是Windows 7 x64和Eclipse 4.2.2,Cordova 2.7(也尝试过2.4)。我在Eclipse上安装了ADT插件,这是我的SDK管理器的屏幕截图。

enter image description here

我在Getting Started教程中遵循了我的PATH变量集中的条目。

如果有人对如何解决这个问题有任何意见或建议,我们将不胜感激!

1 个答案:

答案 0 :(得分:0)

嘿如果你正在创建一个项目,那么你必须创建一个assets / www文件夹等,你也必须在其他文件中进行更改。

按照以下链接,您可以获得所需的所有信息

http://www.adobe.com/devnet/html5/articles/getting-started-with-phonegap-in-eclipse-for-android.html

请务必根据您的要求更改cordova版本等。

相关问题