更新到流星1.2后,我无法让我的应用程序为Android构建。我已按照https://github.com/meteor/meteor/wiki/Mobile-Development-Install:-Android-on-Mac的说明进行操作。
运行meteor run android-device --verbose
时出现以下错误:
Getting installed version for platform android in Cordova project
Getting installed version for platform ios in Cordova project
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- Mac
Status of the requirements:
✓ Java JDK
✓ Android SDK
✗ 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
我已经运行rm -rf .meteor/local
,export ANDROID_HOME=~/Library/Android/sd
,export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-toolsexport ANDROID_HOME=~/Library/Android/sdk
,我甚至将服务器中的环境设置为process.env.ANDROID_HOME = '~/Library/Android/sdk';
。
我不知道如何让这个工作,任何帮助将不胜感激。
答案 0 :(得分:0)
@junior尝试给出android sdk的完整路径......我希望这个有用......看看要求是否匹配......因为,它确实说所有的要求都不匹配.....
set ANDROID_HOME=C:\\android-sdk-windows
set PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools
MAC export ANDROID_HOME =“/ Users // Library / Android / sdk /” export ANDROID_TOOLS =“/ Users // Library / Android / sdk / tools” export ANDROID_PLATFORM_TOOLS =“/ Users // Library / Android / sdk / platform- tools” PATH = $ PATH:$ ANDROID_HOME:$ ANDROID_TOOLS:$ ANDROID_PLATFORM_TOOLS 并再次尝试重新安装 $ android 然后转到基于Cordova的项目目录 $ ionic platform add android