Cordova缺少ANDROID_HOME变量来模拟

时间:2015-07-05 13:06:52

标签: android cordova

如何让模拟器工作? Cordova错过了ANDROID_HOME环境变量,但它被设置为下面显示的终端输出

在NetBeans中,只能使用设备的浏览器进行调试,但不能将应用程序模拟为APK

yves@dell-xps:~/NetBeansProjects/moTion$ sudo cordova emulate
[sudo] password for yves: 
Running command: /home/yves/NetBeansProjects/moTion/platforms/android/cordova/run --emulator
ERROR: Error: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable.
Error: /home/yves/NetBeansProjects/moTion/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:134:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
yves@dell-xps:~/NetBeansProjects/moTion$ echo $ANDROID_HOME
/home/yves/Android/Sdk

0 个答案:

没有答案