我尝试使用
我遇到了以下错误:
我已经在.bash_profile中设置好了所有内容。
但是我无法解决这个问题。重新安装Android SDK也没有用。
非常感谢您的帮助。
ionic build android
构建Ionic应用程序,但没有成功。我在stackoverflow上寻找答案,但似乎没有遇到同样的情况。我遇到了以下错误:
ANDROID_HOME=/Users/myuserID/development/android-sdk-macosx
JAVA_HOME=/Users/myuserID/Library/Java/JavaVirtualMachines/jdk1.8.0_71.jdk/Co>nten
ts/home
Running:
>/Users/myuserID/development/ionic/keepdoing/platforms/android/gradlew
cdvBuildDebug -b
/Users/myuserID/development/ionic/keepdoing/platforms/android/build.gradle -
Dorg.gradle.daemon=true
ERROR: JAVA_HOME is set to an invalid directory:
/Users/myuserID/Library/Java/JavaVirtualMachines/jdk1.8.0_71.jdk/Contents/hom>e
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
我已经在.bash_profile中设置好了所有内容。
export PATH=$PATH:/Users/myuserID/development/android-sdk-macosx/platform-
tools
export PATH=$PATH:/Users/myuserID/development/android-sdk-macosx/tools
export ANDROID_HOME="/Users/myuserID/development/android-sdk-macosx"
export
JAVA_HOME="/Users/myuserID/Library/Java/JavaVirtualMachines/jdk1.8.0_71.jdk
export PATH=$PATH:/usr/local/share/npm/bin
export PATH=$PATH:/usr/local/npm/bin
export PATH=$PATH:/usr/local/lib/node_modules/cordova/
export
PATH=$PATH:/Library/Java/JavaVirtualMachines/jdk1.8.0_71.jdk/Contents/home/bin
export PATH=$PATH:/Library/Java/JavaVirtualMachines/jdk1.8.0_71.jdk
但是我无法解决这个问题。重新安装Android SDK也没有用。
非常感谢您的帮助。