k,所以我在这里:
$cordova run android --device
Running command: testapp/hooks/after_prepare/010_add_platform_class.js /home/user/testapp
add to body class: platform-android
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.
当我回应ANDROID_HOME时会发生什么:
echo $ANDROID_HOME
/home/patrick/Android/Sdk
这里是JAVA_HOME
echo $JAVA_HOME
/usr/lib/jvm/java-8-jdk
这里的路径
/home/patrick/.cvm:
/home/patrick/.nvm/versions/node/v6.2.0/bin:
/usr/local/sbin:
/usr/local/bin:
/usr/bin:
/usr/lib/jvm/default/bin:
/home/patrick/Android/Sdk/tools:
/home/patrick/Android/Sdk/platform-tools:
/home/patrick/Android/Sdk/build-tools:
/usr/lib/jvm/java-8-jdk/bin
删除/重新添加Android平台后,我得到: 您的系统信息:
Cordova CLI: 6.2.0
Ionic CLI Version: 2.2.0
Ionic App Lib Version: 2.2.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.10
Node Version: v6.2.0
Xcode version: Not installed
我也跑了:
sudo chown -R $(whoami) /home/patrick/.cordova