我安装的PhoneGap 3.0的Node.js和配置的所有环境变量,这样的javac,java和蚂蚁的所有工作,但是当我做一个基本的应用程序创建并尝试构建它为Android,我得到以下错误:
I installed PhoneGap 3.0 with Node.js and configured all the environment variables so that javac, java, and ant all work but when I do a basic app create and try to build it for Android, I get the following error:
创作的Android子项目过程中出现错误。创建科尔多瓦项目为Android平台:命令执行失败:蚂蚁的jar
An error occurred during creation of android sub-project. Creating Cordova project for the Android platform: Command failed to execute : ant jar
任何想法?
推荐答案
请确保你已经安装了你的Android SDK版本的Android构建工具。在工具下了Android SDK管理器> Android SDK中内建的工具,你应该看到,没有安装您的SDK版本构建工具。
Make sure you have the Android Build Tools installed for your Android SDK version. In the Android SDK manager under Tools>Android SDK Build-tools you should see that the Build tools for your SDK version are not installed.
详细如何我发现这样的:
Detail on how I uncovered this:
要找出这个问题的根源,我跑了科尔多瓦命令-d的详细程度:
To identify this as the root cause I ran the Cordova command with -d for verbosity:
cordova -d platform add android
该命令的输出显示了错误:
The output of this command shows the error:
Running bin/create for platform "android" with command: ""C:Users---.cordovalibandroidcordova3.1.0bincreate" "C:Users---workspace_androidFleetViewplatformsandroid" "com.---.fleetview" "Fleet View"" (output to follow)
运行问题的命令直接:
Running the offending command directly:
"C:Users---.cordovalibandroidcordova3.1.0bincreate" "C:Users---workspace_androidFleetViewplatformsandroid" "com.---.fleetview" "Fleet View"
产生这样的输出:
produces this output:
BUILD FAILED
C:toolsadt-bundle-windows-x86_64-20130219sdktoolsantbuild.xml:479: SDK does not have any Build Tools installed.
Total time: 1 second
Command failed to execute : ant jar
我在Windows 7上。
I am on Windows 7.
相关推荐
最新文章