[英]Ionic project throws exception when run on android?
I'm trying execute an Ionic project on Android. 我正在尝试在Android上执行Ionic项目。 When I try execute the project does throws an exception from cordova. 当我尝试执行项目时,确实会引发cordova的异常。 Looking for a solution I found some peoples saying to set path of Android SDK, I made this but I still haven't any success. 在寻找解决方案时,我发现有人说要设置Android SDK的路径,虽然做到了这一点,但仍然没有任何成功。 I added paths C:\\Users\\fernando\\AppData\\Local\\Android\\sdk\\tools
and C:\\Users\\fernando\\AppData\\Local\\Android\\sdk\\platform-tools
. 我添加了路径C:\\Users\\fernando\\AppData\\Local\\Android\\sdk\\tools
和C:\\Users\\fernando\\AppData\\Local\\Android\\sdk\\platform-tools
。
How could I solve it ? 我该如何解决?
ANDROID_HOME
variable. 使用ANDROID_HOME
变量检查您的Android路径。 This path should be the root of your SDK in the User variables
. 该路径应该是User variables
SDK的根。 If it is not exist, add a new one. 如果不存在,请添加一个新的。
$ android
in the command line to check the SDK. 在命令行中输入$ android
来检查SDK。 API 19
has been installed. 您还必须检查是否已安装API 19
。 adb devices
to make sure your device has been recognized by the computer. 运行adb devices
以确保计算机已识别您的设备。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.