使用命令行创建Android工程报错:"Target id is not valid. Use 'android.bat list targets' to get the target ids"
D:\adt\sdk>cd tools
D:\adt\sdk\tools>
D:\adt\sdk\tools>android list targets
Available Android targets:
----------
id: 1 or "android-18"
Name: Android 4.3
Type: Platform
API level: 18
Revision: 1
Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, W
XGA720, WXGA800, WXGA800-7in
ABIs : armeabi-v7a
两次失败执行,ID不对,和上面的id相同
D:\adt\sdk\tools>android create project --target 19 --path d:\anzhuo\MyFirstApp
\ --activity MainActivity --package com.example.myfirstapp
Error: Target id is not valid. Use 'android.bat list targets' to get the target
ids.
D:\adt\sdk\tools>android create project --target 18 --path d:\anzhuo\MyFirstApp
\ --activity MainActivity --package com.example.myfirstapp
Error: Target id is not valid. Use 'android.bat list targets' to get the target
ids.
D:\adt\sdk\tools>android create project --target android-18 --path d:\anzhuo\My
FirstApp\ --activity MainActivity --package com.example.myfirstapp
Created directory D:\anzhuo\MyFirstApp\src\com\example\myfirstapp
Added file d:\anzhuo\MyFirstApp\src\com\example\myfirstapp\MainActivity.java
Created directory D:\anzhuo\MyFirstApp\res
Created directory D:\anzhuo\MyFirstApp\bin
Created directory D:\anzhuo\MyFirstApp\libs
Created directory D:\anzhuo\MyFirstApp\res\values
Added file d:\anzhuo\MyFirstApp\res\values\strings.xml
Created directory D:\anzhuo\MyFirstApp\res\layout
Added file d:\anzhuo\MyFirstApp\res\layout\main.xml
Created directory D:\anzhuo\MyFirstApp\res\drawable-xhdpi
Created directory D:\anzhuo\MyFirstApp\res\drawable-hdpi
Created directory D:\anzhuo\MyFirstApp\res\drawable-mdpi
Created directory D:\anzhuo\MyFirstApp\res\drawable-ldpi
Added file d:\anzhuo\MyFirstApp\AndroidManifest.xml
Added file d:\anzhuo\MyFirstApp\build.xml
Added file d:\anzhuo\MyFirstApp\proguard-project.txt
D:\adt\sdk\tools>
查看目录,产生工程文件
使用命令行创建Android工程报错:"Target id is not valid. Use 'android.bat list targets' to get the target ids"的更多相关文章
- maven命令行创建web项目报错:java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils
早上一上班就想新建一个web项目玩玩,没想到一敲命令创建就失败了,真是出师不利.各种折腾无果,当然我也可以用eclipse直接创建的,就是不甘心被这破问题给耍了.刚刚才发现问题原因,这个结果我也是醉了 ...
- Eclipse创建Maven工程报错
问题 用Eclipse创建maven工程的时候,总是会报错,例如提示: Unable to create project from archetype [org.apache.maven.archet ...
- php yii2 使用命令行模式开启脚本 报错 :Error while sending QUERY packet. PID=xxx
背景:使用Yii2命令行模式开启脚本监控rabbitmq队列(或使用nohup &命令后台监控接口),当队列有订单信息,执行查询,更新操作(相当于PHP文件写个查询,更新,使用命令行启动) 问 ...
- 【已解决】unity4.2.0f4 导出Android工程报错:Error building Player: ArgumentException: Illegal characters in path. [unity导出android工程 报错,路径含有非法字符]
使用unity3D开发的一个客户端,需要导出为Android工程,然后接入一些第三方android SDK. unity版本 操作系统为: OS 名称: Microsoft Windows 7 旗舰版 ...
- Android 工程报错解决 Unable to resolve target 'android-17'
转自:http://www.cnblogs.com/csulennon/p/3705177.html 换了系统后,重新安装了Android SDK和ADT插件,导入之前的工作空间.居然发现所有的And ...
- 命令行运行py文件报错
起因 今天用ubuntu 终端运行py文件报了个错,找不到模块? 我切换回pycharm中运行,运行一切正常 解决 在报错模块中,插入绝对路径 import sys sys.path.append(' ...
- windows 7/mac编译cocos2d-x-3.2*的android工程报错
开始学习cocos2d-x-3.* 凭着对2.*的各个版本的认识和升级的经验,本以为直接用最新的3.2rc0版本练手应该没有问题,结果一上来就是一个大坑.你妹! Android NDK: Invali ...
- python命令行中import caffe报错的解决方案
1.ImportError: No module named skimage.io >>> import caffe Traceback (most recent call last ...
- vue命令行创建运行工程
// install vue-cli 安装依赖包 npm install --g vue-cli// 使用vue-cli初始化项目 vue init webpack my-project// inst ...
随机推荐
- kettle导数删除并插入更新数据_20161130
这里有3个表 仅是时间维度不同 天 周 月,现在需要把昨天数据每天添加进入这3个表 由于业务上会有退货等情况,因此需要先把这些表原来的部分数据删除 再从那个时间点进行更新. 天需要先删除前7天的数据, ...
- 「HNOI2008」「LuoguP3197」越狱(数论
题目描述 原题来自:HNOI 2008 监狱有连续编号为 111 到 nnn 的 nnn 个房间,每个房间关押一个犯人.有 mmm 种宗教,每个犯人可能信仰其中一种.如果相邻房间的犯人信仰的宗教相同, ...
- 【Lintcode】120.Word Ladder
题目: Given two words (start and end), and a dictionary, find the length of shortest transformation se ...
- python script
1.tab键自动补全(每次导入时要将脚本的路径加入到sys.path中) import sysimport readlineimport rlcompleterimport atexitimport ...
- Vijos:P1540月亮之眼
描述 吉儿是一家古董店的老板娘,由于她经营有道,小店开得红红火火.昨天,吉儿无意之中得到了散落民间几百年的珍宝—月亮之眼.吉儿深知“月亮之眼”价值连城:它是由许多珍珠相连而成的,工匠们用金线连接珍珠, ...
- 2012年浙大:Head of a Gang
题目描述: One way that the police finds the head of a gang is to check people's phone calls. If there is ...
- 虚拟机ubuntu和windows共享文件
设置虚拟机ubuntu和windows共享文件(方便复制文件到本机) (需要安装samba) 登陆ubuntu系统后,点击左边的文件夹.右击新建个文件夹. 设置为共享 ubuntu会提示你 ...
- warning: conflicting types for built-in function 'puts'
warning: conflicting types for built-in function 'puts' [编译器版本] arm-linux-gcc 3.4.1 [问题描述] 在做嵌入式底层开发 ...
- caffe 逐步调试
caffe 逐步调试 https://www.zhihu.com/question/27982282
- (转)apache2.2.x+tomcat7.0.x集群+…
apache http server下载地址 http://httpd.apache.org/download.cgi#apache22 这里下载的是httpd-2.2.21-win32-x86-op ...