PhoneGap的3.0的Android build命令执行失败:蚂蚁的jar [英] PhoneGap 3.0 Android build Command failed to execute : ant jar
问题描述
我安装的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\---\.cordova\lib\android\cordova\3.1.0\bin\create" "C:\Users\---\workspace_android\FleetView\platforms\android" "com.---.fleetview" "Fleet View"" (output to follow)
运行问题的命令直接:
Running the offending command directly:
"C:\Users\---\.cordova\lib\android\cordova\3.1.0\bin\create" "C:\Users\---\workspace_android\FleetView\platforms\android" "com.---.fleetview" "Fleet View"
产生这样的输出:
produces this output:
BUILD FAILED
C:\tools\adt-bundle-windows-x86_64-20130219\sdk\tools\ant\build.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.
这篇关于PhoneGap的3.0的Android build命令执行失败:蚂蚁的jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!