`
moqiang02
  • 浏览: 523974 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
文章分类
社区版块
存档分类
最新评论

使用命令行创建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>


查看目录,产生工程文件


分享到:
评论

相关推荐

    Apress.Beginning.Android.2.2010.pdf

    ■Chapter 2: Projects and Targets ................ 5 ■Chapter 3: Creating a Skeleton Application ............... 17 ■Chapter 4: Using XML-Based Layouts.................. 23 ■Chapter 5: Employing ...

    解决Android-sdk安装问题说明

    android-sdk + ADT-0.9.7.RAR下载地址: 1:http://download.csdn.net/source/2611163 2:http://download.csdn.net/source/2611176 单独的ADT-0.9.7.zip下载地址: http://download.csdn.net/source/2611191 本人...

    [android.开发书籍].Beginning.Android.2.(Apress,.2010,.1430226293).pdf

    ■Chapter 2: Projects and Targets ................................................................................................................ 5 ■Chapter 3: Creating a Skeleton Application..........

    Android代码-ScraperClub

    make sure to keep it plugged in as the screen must be on for scraping to work. Spend your credits by logging into ScraperClub.com and uploading your list of scraping targets. P.S. Everything can ...

    DeepDTA_Deep Drug-Target Binding Affinity Prediction2018.pdf

    Most of the computational methods that have been proposed to predict DT interactions have focused on binary classification, where the goal is to determine whether a DT pair interacts or not....

    Senfore_DragDrop_v4.1

    A batch file, convert_forms_to delphi_4_format.bat, is supplied in the demo directory which automates the conversion process. The C++ Builder demo forms are distributed in binary format. 7) If ...

    Software Testing and Continuous Quality Improvement

    16 Steps to Develop and Implement a Software Quality Assurance Plan. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Step 1. Document the Plan. . . ...

    android adb shell 命令大全

    android list targets 2. 显示系统中全部AVD(模拟器): android list avd 3. 创建AVD(模拟器): android create avd --name 名称 --target 平台编号 4. 启动模拟器: emulator -avd 名称 -sdcard ~/...

    The Definitive Guide to Jython - Python for the Java Platform (2010).pdf

    ■ Chapter 17: Deployment Targets................................................................................................359 Part IV: Strategy and Technique......................................

    Beginning Android 2

    Chapter 1: The Big Picture......................................................................................................................... 1 Chapter 2: Projects and Targets .....................

    romfs.2.0.x.gz

    Here are some patches to GDB to allow the existing gdb ARM emulator to run uClinux targets. It can run both little-endian and big-endian code, as well as apcs-32/26 code and Thumb. I have tested ...

    vcpkg-master.zip

    The best way to use installed libraries with cmake is via the toolchain file scripts\buildsystems\vcpkg.cmake. To use this file, you simply need to add it onto your CMake command line as: -DCMAKE_...

    cJSON-master.zip

    * `-DENABLE_TARGET_EXPORT=On`: Enable the export of CMake targets. Turn off if it makes problems. (on by default) * `-DENABLE_CUSTOM_COMPILER_FLAGS=On`: Enable custom compiler flags (currently for ...

    TARGET TRACKING_IMPLEMENTING THE KALMAN FILTER.pdf

    Target tracking is often complicated by the measurement noise. The noise must be “filtered” out in order to predict the true path of a moving target. In this study of linear filtering, the Kalman ...

    Target Tracking with Kalman Filtering, KNN and LSTMs.pdf

    Tracking an unknown number of targets given noisy measurements from multiple sensors is critical to autonomous driving. Rao- Blackwellized particle ltering is well suited to this problem. Monte ...

    [Go语言入门(含源码)] The Way to Go (with source code)

    The Way to Go,: A Thorough Introduction to the Go Programming Language 英文书籍,已Cross the wall,从Google获得书中源代码,分享一下。喜欢请购买正版。 目录如下: Contents Preface......................

    MCB2130的voicePlayer程序

    The VoicePlayer project is a simple program for the LPC2138 using Keil MCB2130 Microcontroller Board. It demonstrates the Digital/Analog Conversion capabilities of the LPC2130 series. Severeal ...

    softap_ap6212a0_tinav2.1_验证通过_旧版本的系统_20170915_1223没有外层目录.7z

    [*] Supply CT list in procfs (OBSOLETE) [*] Connection tracking events [*] Connection tracking timeout (NEW) [*] Connection tracking timestamping < > DCCP protocol connection tracking support ...

    Palm WebOS 开发.rar

    Passing Touches to the Target 189 Light and Dark Styles 189 Summary 191 8. Application Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....

    新版Android开发教程.rar

    Note: Note: Note: Note: If JDK is already installed on your development computer, please take a moment to make sure that it meets the version requirements listed above. In particular, note that some ...

Global site tag (gtag.js) - Google Analytics