• 使用命令行创建Android工程报错:"Target id is not valid. Use 'android.bat list targets' to get the target ids"


    D:adtsdk>cd tools

    D:adtsdk ools>

    D:adtsdk ools>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:adtsdk ools>android create project --target 19 --path  d:anzhuoMyFirstApp
     --activity MainActivity --package com.example.myfirstapp
    Error: Target id is not valid. Use 'android.bat list targets' to get the target
    ids.

    D:adtsdk ools>android create project --target 18 --path  d:anzhuoMyFirstApp
     --activity MainActivity --package com.example.myfirstapp
    Error: Target id is not valid. Use 'android.bat list targets' to get the target
    ids.

    D:adtsdk ools>android create project --target android-18 --path  d:anzhuoMy
    FirstApp  --activity MainActivity --package com.example.myfirstapp
    Created directory D:anzhuoMyFirstAppsrccomexamplemyfirstapp
    Added file d:anzhuoMyFirstAppsrccomexamplemyfirstappMainActivity.java
    Created directory D:anzhuoMyFirstApp es
    Created directory D:anzhuoMyFirstAppin
    Created directory D:anzhuoMyFirstApplibs
    Created directory D:anzhuoMyFirstApp esvalues
    Added file d:anzhuoMyFirstApp esvaluesstrings.xml
    Created directory D:anzhuoMyFirstApp eslayout
    Added file d:anzhuoMyFirstApp eslayoutmain.xml
    Created directory D:anzhuoMyFirstApp esdrawable-xhdpi
    Created directory D:anzhuoMyFirstApp esdrawable-hdpi
    Created directory D:anzhuoMyFirstApp esdrawable-mdpi
    Created directory D:anzhuoMyFirstApp esdrawable-ldpi
    Added file d:anzhuoMyFirstAppAndroidManifest.xml
    Added file d:anzhuoMyFirstAppuild.xml
    Added file d:anzhuoMyFirstAppproguard-project.txt

    D:adtsdk ools>


    查看目录,产生工程文件


  • 相关阅读:
    kubernetes进阶(一) kubectl工具使用详解
    二进制安装kubernetes(七) 部署知识点总结
    1024程序员节:这就是国内开发者的现状?
    php 伪协议
    浅谈 PHP 与手机 APP 开发(API 接口开发)
    比RBAC更好的权限认证方式(Auth类认证)
    PHP获得毫秒数
    2020年PHP面试题附答案(实战经验)
    分享几套2019年各大公司最新的PHP面试题,几斤几两一试便知
    PHP面试题2019年百度工程师面试题及答案解析
  • 原文地址:https://www.cnblogs.com/moqiang02/p/4061473.html
Copyright © 2020-2023  润新知