Android目标:未安装 [英] Android target : not installed

查看:139
本文介绍了Android目标:未安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法运行离子运行android 。在我用 cordova要求检查后,它显示

  Android目标:不已安装
未找到Android SDK。



我该如何解决问题?我在D盘中安装了我的SDK,我已正确设置ANDROID_HOME和路径,我想



另外,我做了android list target,如下所示。如果需要修复错误,我该怎么办呢?



附上cordova android版本



解决方案

你可以点击此链接



接下来,将android'tools'和'platform-tools'添加到System变量''Path',如下所示。这些工具位于sdk文件夹中。





设置完成了。打开cmd并发出android命令。如果一切顺利,你应该看到下面的输出。



最后打开一个新的终端窗口并导航到您的cordova项目目录,在我的情况下你好并检查平台要求。一切都应该没事了。


I am unable to run ionic run android. After I checked with cordova requirements, it shows

Android target: Not installed
Android SDK not found.

How should I solve the problem? I have my SDK in D drive where I have set ANDROID_HOME and path correctly, I suppose

Also, I do android list target, it shown as below. How should I intsall it if it is needed to fix teh error?

Attached the cordova android version

解决方案

You can follow this link set ANDROID_HOME which I got help from or follow below guide.

I had similar trouble but managed to fix it. After successful installation of android studio, Android SDK will be downloaded by default to a directory like this "C:\Users\abc\AppData\Local\Android\sdk1" where "abc" in this case is your PC name. AppData is a hidden folder.

Next step is to set ANDROID SDK path. From Advanced System Settings, click Environment Variables then under User variables add New as shown below.

Next, add android 'tools' and 'platform-tools' to System variables' 'Path' as shown below. These tools are inside sdk folder.

Set up is done. Open cmd and issue android command. If all is well, you should see below output.

Finally open a new terminal window and navigate to your cordova project directory, in my case "hello" and check platfrom requirements. All should be fine now.

这篇关于Android目标:未安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆