Ionic 2:在安卓平台上运行时出错。

问题描述 投票:0回答:1

我在使用Ionic 2的时候,使用了以下命令 ionic cordova run android 我有这个错误。

Fetching plugin "mx.ferreyra.callnumber@~0.0.2" via npm
ERROR running one or more of the platforms: Android SDK not found. 
Make sure that it is installed. If it is not at the default location, 
set the ANDROID_HOME environment variable. 
You may not have the required environment or OS to run this project.

谁能告诉我解决办法?

ionic-framework ionic2
1个回答
1
投票

确保你已经安装了Android Studio。如果安装了,那么就把错误中提到的环境变量设置为你的SDK所在的目录,在Windows上。%AppData%/Local/Android/SDK

© www.soinside.com 2019 - 2024. All rights reserved.