我在Ubuntu 12.10上安装了phonegap 3.2.0-0.17.0。
出于某种原因,当我尝试在phonegap上构建我的本地项目的android平台时,我收到以下错误:
> phonegap local build android
[phonegap] adding the Android platform...
[error] An error occured during creation of android sub-project. Looks like your environment fully supports cordova-android development!
Creating Cordova project for the Android platform:
Path: platforms/android
Package: com.package.project_name
Name: project_name
Android target: android-17
Building cordova-3.2.0.jar
{ [Error: Command failed:
BUILD FAILED
/path/to/adt-bundle-linux-x86_64-20131030/sdk/tools/ant/build.xml:653: The following error occurred while executing this line:
/path/to/adt-bundle-linux-x86_64-20131030/sdk/tools/ant/build.xml:698: null returned: 127
Total time: 1 second
] killed: false, code: 1, signal: null }
这里是我的JAVA_HOME,ANT_HOME&任何建议的路径配置:
export JAVA_HOME=/usr/lib/jvm/default-java
export ANT_HOME=/usr/local/apache-ant-1.9.2
export PATH=${PATH}:/path/to/adt-bundle-linux-x86_64-20131030/sdk/platform-tools:/path/to/adt-bundle-linux-x86_64-20131030/sdk/tools:${ANT_HOME}/bin
有人可以帮我解决这个问题吗?
谢谢!