【发布时间】:2016-03-02 17:39:21
【问题描述】:
问题:当我在 Linux Mint 上尝试 meteor add-platform android 时,Meteor 找不到我的 Android SDK。
我已经设置了我的 PATH 变量:(echo $PATH)
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/jimmy/Android/Sdk/tools:/home/jimmy/Android/Sdk/platform-tools
我有我的 ANDROID_HOME 变量:(echo $ANDROID_HOME)
/home/jimmy/Android/Sdk
但是,当我运行 sudo meteor add-platform android --verbose 时,我得到:
Adding platform Android to Cordova project
% Adding android project...
android: added platform
Checking Cordova requirements for platform Android
Your system does not yet seem to fulfill all requirements to build apps for
Android.
Please follow the installation instructions here:
https://github.com/meteor/meteor/wiki/Mobile-Development-Install:-Android-on-Linux
Status of the requirements:
✓ Java JDK
✗ Android SDK: Failed to find 'ANDROID_HOME' environment variable. Try setting
setting it manually.
Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to
include path to valid SDK directory.
✗ Android target: Android SDK not found. Make sure that it is installed. If it
is not at the default location, set the ANDROID_HOME environment variable.
✗ Gradle: Could not find gradle wrapper within Android SDK. Could not find
Android SDK directory.
Might need to install Android SDK or set up 'ANDROID_HOME' env variable.
【问题讨论】:
-
你为什么使用
sudo? -
因为我不使用 sudo 时 Meteor 不喜欢它
-
同样的事情发生在我身上...