博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Llinux 编译安卓 “android list targets 无target显示” 的解决方法
阅读量:5807 次
发布时间:2019-06-18

本文共 1281 字,大约阅读时间需要 4 分钟。

hot3.png

If you're getting started with the Android SDK and encounter an error message which says "Error: Target id is not valid. Use 'android list targets' to get the target ids'" here's how to solve it...

While you're developing an Android application you'll need to create an Android Virtual Device or AVD, which allows you to test your application before you let it loose on a real 'phone.

The docs tell you to run the following command: android create avd --target 2 --name my_avd However, this gave me the following error "Error: Target id is not valid. Use 'android list targets' to get the target ids."

Running android list targets listed no available targets. This is because the SDK needs some further set-up work to tell it to fetch sources before you can use it.

To get around this problem type android in your terminal. Then click Available sources > check the box and click install selected. It will then go off and download all of the SDK packages via an https repository server at google.com/android.

Now re-run android create avd --target 2 --name my_avd and it should allow you to create the AVD and map it to a target.

 但是在检查更新的时候,会出现连接google 仓库失败 connection time out,具体解决办法见我的博客:

 

 

原文:http://techpad.co.uk/content.php?sid=96

转载于:https://my.oschina.net/u/1377657/blog/262890

你可能感兴趣的文章
Android SDK 的下载代理
查看>>
Method Swizzling对Method的要求
查看>>
佛祖保佑,永不宕机
查看>>
四、配置开机自动启动Nginx + PHP【LNMP安装 】
查看>>
LNMP一键安装
查看>>
SQL Server数据库概述
查看>>
Linux 目录结构及内容详解
查看>>
startx命令--Linux命令应用大词典729个命令解读
查看>>
华为3026c交换机配置tftp备份命令
查看>>
Oracle命令导入dmp文件
查看>>
OCP读书笔记(24) - 题库(ExamD)
查看>>
Http、TCP/IP协议与Socket之间的区别(转载)
查看>>
解决Unable to load R3 module ...VBoxDD.dll (VBoxDD):GetLastError=1790
查看>>
.net excel利用NPOI导入oracle
查看>>
vrpie在Visio Studio 中无法调试的问题
查看>>
第六课:数据库的基本工具
查看>>
关于二叉树重构的思索
查看>>
$_SERVER['SCRIPT_FLENAME']与__FILE__
查看>>
skynet实践(8)-接入websocket
查看>>
系统版本判断
查看>>