在创建android APK文件时,未找到Android SDK错误

时间:2017-05-19 11:21:24

标签: angular ionic2

$ ionic build android --release  > ionic-hello-world@0.0.0 ionic:build D:\Mobile\Backup\Music App\music > ionic-app-scripts build "--release"  [16:42:24]  ionic-app-scripts 1.3.7 
[16:42:24]  build dev started ... 
[16:42:24]  clean started ... 
[16:42:24]  clean finished in less than 1 ms 
[16:42:24]  copy started ... 
[16:42:24]  transpile started ... 
[16:42:27]  transpile finished in 2.48 s 
[16:42:27]  preprocess started ... 
[16:42:27]  deeplinks started ... 
[16:42:27]  deeplinks finished in 16 ms 
[16:42:27]  preprocess finished in 16 ms 
[16:42:27]  webpack started ... 
[16:42:27]  copy finished in 3.07 s 
[16:42:34]  webpack finished in 7.47 s
[16:42:34]  sass started ... 
[16:42:37]  sass finished in 2.38 s 
[16:42:37]  postprocess started ... 
[16:42:37]  postprocess finished in 15 ms 
[16:42:37]  lint started ... 
[16:42:37]  build dev finished in 12.45 s 
[16:42:38]  lint finished in 1.82 s 

ERROR构建其中一个平台:未找到Android SDK。确保已安装。如果它不在默认位置,请设置ANDROID_HOME环境变量。您可能没有所需的环境或操作系统来构建此项目错误:找不到Android SDK。确保已安装。如果它不在默认位置,请设置ANDROID_HOME环境变量。

0 个答案:

没有答案