【发布时间】:2014-11-29 16:12:21
【问题描述】:
我正在尝试让 Phone-gap 工作,我遵循了本教程:http://www.levibotelho.com/development/the-complete-guide-to-running-phonegap-on-ubuntu/。我是一个 Ubuntu 13.10。我已经尝试了许多在 stack-overflow 和其他方面发现的不同解决方案,但它们都不起作用。
我正在使用的导出:
export ANDROID_HOME="/usr/local/android-sdk-linux/tools"
export ANDROID_PLATFORM_TOOLS="/usr/local/android-sdk-linux/platform-tools"
export PATH="$PATH:$ANDROID_HOME:$ANDROID_PLATFORM_TOOLS"
我得到的错误是这样的:
Running command: /hdd/Fred/Documents/phonegap/helloworld/platforms/android/cordova/run --emulator
ERROR: Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.
Error: /hdd/Fred/Documents/phonegap/helloworld/platforms/android/cordova/run: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)
请帮忙。
【问题讨论】:
-
我猜,Andrid home 应该是直到 sdk 而不是工具。