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. Could not load the "xxx.png" image referenced from a nib in the bundle with identifier "com.xxxx"

    打印台logs:  Could not load the "xxx.png" image referenced from a nib in the bundle with iden ...

  2. ACM学习历程—ZOJ3878 Convert QWERTY to Dvorak(Hash && 模拟)

    Description Edward, a poor copy typist, is a user of the Dvorak Layout. But now he has only a QWERTY ...

  3. javacv实现实时视频截图和录像服务easyCV

    本项目维护于github:https://github.com/eguid/easyCV 1.介绍 本项目基于javaCV1.4.x. 其中实现了 (1)实时视频截图服务(支持rtsp/rtmp/ht ...

  4. Godot-3D教程-02.3D性能和局限性

    介绍 Introduction Godot遵循表现与性能平衡信条.在这个表现的世界中,它们总是有许多约定俗成的东西,主要是在用执行速度换取可用性与扩展性方面.下面是一些实际的例子: 高效地渲染对象是比 ...

  5. 实现PIX需要参考的标准资料

    •初步了解PIX V2和V3:"IHE_ITI_TF_Rev8-0_Vol1_FT_2011-08-19"中第5章和第23章 •了解PIX V2相关事务: "IHE_IT ...

  6. Ubuntu ssh免密登录

    ssh免密登录工作原理 server A免登录到server B: 1.在A上生成公钥私钥. 2.将公钥拷贝给server B,要重命名成authorized_keys(从英文名就知道含义了) 3.S ...

  7. tp框架下,数据库和编辑器都是utf-8, 输出中文却还是乱码

    输出: array(2) { [0]=> array(4) { ["id"]=> string(1) "1" ["user"]= ...

  8. 二十五种网页加速方法和seo优化技巧

    一.使用良好的结构 可扩展 HTML (XHTML) 具有许多优势,但是其缺点也很明显.XHTML 可能使您的页面更加符合标准,但是它大量使用标记(强制性的 <start> 和 <e ...

  9. malloc,alloc,realloc之间的相似与区别

    三个函数的申明分别是: void* realloc(void* ptr, unsigned newsize); void* malloc(unsigned size); void* calloc(si ...

  10. 7.10实习培训日志-Maven 敏捷编程

    总结 今天早上主要学习了Maven和Idea的Docker插件,遇到了一些坑,对于Idea的Docker插件,不能下载,然后我去访问Idea插件官网,发现被墙了,只要开个VPN就好.下午主要是张总经理 ...