在phonegap CLI上构建错误

时间:2016-11-07 23:37:35

标签: android phonegap-cli

我在ubuntu服务器14.04上创建了一个带有phonegap cli的app项目,我安装了android SDK和java SDK。

我不想使用adobe提供的phonegap构建服务,但我想在我的服务器上构建应用程序(然后离线)。

当我尝试使用“phonegap build android --debug”构建应用时,收到此错误:

root@m-ub:/srv/applicazioni/ddns# phonegap build android --debug
[phonegap] executing 'cordova build android --debug ' ...
ANDROID_HOME=/usr/local/android-sdk-linux/


JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386


FAILURE:
Build failed with an exception.


* What went wrong:


A problem occurred configuring root project 'android'.


> failed to find target with hash string '15' in: /usr/local/android-sdk-linux


* Try:
Run with --stacktrace option to get the stack trace. Run with --info
or
--debug
option to get more log output.


BUILD FAILED


Total time: 2.902 secs


Error: Error code 1 for command: /srv/applicazioni/ddns/platforms/android/gradlew with args: cdvBuildDebug,-b,/srv/applicazioni/ddns/platforms/android/build.gradle,-Dorg.gradle.daemo n=true,-Pandroid.useDeprecatedNdk=true

我在/ root目录中创建了3个环境变量:

export ANDROID_HOME=/usr/local/android-sdk-linux/
export PATH=${PATH}:/usr/local/android-sdk-linux/platform-tools:/usr/local/android-sdk-linux/too ls
export ORG_GRADLE_PROJECT_cdvCompileSdkVersion=15

如何解决此问题?

由于

0 个答案:

没有答案