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"的更多相关文章

  1. maven命令行创建web项目报错:java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils

    早上一上班就想新建一个web项目玩玩,没想到一敲命令创建就失败了,真是出师不利.各种折腾无果,当然我也可以用eclipse直接创建的,就是不甘心被这破问题给耍了.刚刚才发现问题原因,这个结果我也是醉了 ...

  2. Eclipse创建Maven工程报错

    问题 用Eclipse创建maven工程的时候,总是会报错,例如提示: Unable to create project from archetype [org.apache.maven.archet ...

  3. php yii2 使用命令行模式开启脚本 报错 :Error while sending QUERY packet. PID=xxx

    背景:使用Yii2命令行模式开启脚本监控rabbitmq队列(或使用nohup &命令后台监控接口),当队列有订单信息,执行查询,更新操作(相当于PHP文件写个查询,更新,使用命令行启动) 问 ...

  4. 【已解决】unity4.2.0f4 导出Android工程报错:Error building Player: ArgumentException: Illegal characters in path. [unity导出android工程 报错,路径含有非法字符]

    使用unity3D开发的一个客户端,需要导出为Android工程,然后接入一些第三方android SDK. unity版本 操作系统为: OS 名称: Microsoft Windows 7 旗舰版 ...

  5. Android 工程报错解决 Unable to resolve target 'android-17'

    转自:http://www.cnblogs.com/csulennon/p/3705177.html 换了系统后,重新安装了Android SDK和ADT插件,导入之前的工作空间.居然发现所有的And ...

  6. 命令行运行py文件报错

    起因 今天用ubuntu 终端运行py文件报了个错,找不到模块? 我切换回pycharm中运行,运行一切正常 解决 在报错模块中,插入绝对路径 import sys sys.path.append(' ...

  7. windows 7/mac编译cocos2d-x-3.2*的android工程报错

    开始学习cocos2d-x-3.* 凭着对2.*的各个版本的认识和升级的经验,本以为直接用最新的3.2rc0版本练手应该没有问题,结果一上来就是一个大坑.你妹! Android NDK: Invali ...

  8. python命令行中import caffe报错的解决方案

    1.ImportError: No module named skimage.io >>> import caffe Traceback (most recent call last ...

  9. vue命令行创建运行工程

    // install vue-cli 安装依赖包 npm install --g vue-cli// 使用vue-cli初始化项目 vue init webpack my-project// inst ...

随机推荐

  1. gulp记录

    npm install gulp -g //全局安装gulp gulp -v //此处若有问题,配置环境变量,npm config get prefix得到路径 npm init //新建nodejs ...

  2. POI2014

    ...一个shabi和一堆神题的故事 今天只写了两道 之后随缘更吧 啊 顺便 snake我是不会更的 bzoj3829 POI2014 Farmcraft mhy住在一棵有n个点的树的1号结点上,每个 ...

  3. ACM学习历程——HDU3333 Turing Tree(线段树 && 离线操作)

    Problem Description After inventing Turing Tree, 3xian always felt boring when solving problems abou ...

  4. 一行代码解决IE6/7/8/9/10兼容问题

    百度源代码如下 <!Doctype html><html xmlns=http://www.w3.org/1999/xhtml xmlns:bd=http://www.baidu.c ...

  5. Jasper:推送 API

    ylbtech-Jasper:推送 API Control Center 还维护一个“推送 API”系统,一旦发生特定事件,就会向应用程序发送编程通知.例如,您可能选择在设备接近流量上限时收到通知.或 ...

  6. docker 学习(一)什么是Docker

    项目中用到docker,就学习一下.第一篇是介绍. Sandboxie(沙箱):一个虚拟系统程序,允许你在沙盘环境中运行浏览器或其他程序,因此运行所产生的变化可以随后删除.它创造了一个类似沙盒的独立作 ...

  7. cnblogs开源合集

    http://www.cnblogs.com/davytitan/p/4135151.html

  8. 在浏览器端用JS创建和下载文件

    前端很多项目中,都有文件下载的需求,特别是JS生成文件内容,然后让浏览器执行下载操作(例如在线图片编辑.在线代码编辑.iPresst等). 但受限于浏览器,很多情况下我们都只能给出个链接,让用户点击打 ...

  9. 自动清除firefox缓存

    1.在firefox的地址栏上输入about:config回车 2.找到browser.cache.check_doc_frequency选项,双击将3改成1保存即可.  选项每个值都是什么含义的.请 ...

  10. 6. webshell文件上传分析溯源

    这道题也是借助大佬的帮助才成功,具体我们来看: 既然人家扫描发现后台目录有文件上传,我们也不能落后,顺便拿出了传说中的御剑,并进行一波扫描: 发现了几个比较有用的目录,特别是upload1.php跟u ...