phonegap build android;无法构建 [英] phonegap build android; not able to build

查看:162
本文介绍了phonegap build android;无法构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用命令 phonegap build android 来创建phonegap,但它总是失败,并显示以下错误

I am trying to build phonegap using command phonegap build android though it always fail with below error

D:\mydolder\myproject>phonegap build android
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] compiling Android...
[TypeError: Cannot set property 'text' of null]
   [error] Cannot set property 'text' of null

我已经下载android sdk并将其设置在环境变量中,如此链接 http://docs.phonegap.com/en/2.2.0/guide_getting-started_android_index.md.html

I have downloaded android sdk and set it in Environment Variables as mentioned in this link http://docs.phonegap.com/en/2.2.0/guide_getting-started_android_index.md.html

推荐答案

我得到它的工作。它似乎一些资源文件不可用。一旦我纠正,它开始正确建立。要准确地说是在res / values文件夹下的string.xml文件夹有问题

I got it working. It seems some resource file were not available. Once i corrected that it started to build properly. To be precise string.xml file under res/values folder had problems

这篇关于phonegap build android;无法构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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