设置ANDROID_HOME环境变量Mac,Cordova

时间:2017-03-02 06:26:17

标签: android macos cordova

检查失败的要求尝试在这里设置环境变量newbie

    Karthiks-Mini:sgame karthikn$ export ANDROID_HOME=/Users/karthikn/Library/Android/sdk
    Karthiks-Mini:sgame karthikn$ export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
    Karthiks-Mini:sgame karthikn$ source ~/.bash_profile
   -bash: /Users/karthikn/.bash_profile: No such file or directory
   Karthiks-Mini:sgame karthikn$ cordova requirements

   Requirements check results for android:
   Java JDK: installed 1.8.0
   Android SDK: installed true
   Android target: not installed 
   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: not installed 
   Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
   Looked here: /Users/karthikn/Library/Android/sdk/tools/templates/gradle/wrapper
   Error: Some of requirements check failed

0 个答案:

没有答案