Use the command line tool to create an android Project

Source: Internet
Author: User
Tags android sdk manager

If you do not have eclipse installed with the ADT plug-in, you can use the command line tool to create a project:

  1. Switch directory to Android SDKTools/Directory.
  2. Run:
    Android list targets

    The console will display a list of available Android platforms that you have downloaded for the SDK. Find your target platform. Remember its ID. We recommend that you use the latest SDK version whenever possible. You can still generate an app for the old version. However, setting the latest version allows you to easily optimize your app on the latest Android device, and provides a better user experience.

    If you do not see the device list, you need to install it using the android SDK manager tool. For more information, see step 1 of the Installation Wizard.

  3. Run:
    Android Create project -- target <target-ID> -- name myfirstapp \ -- path <path-to-workspace>/myfirstapp -- activity myfirstactivity \ -- package com. example. MyApp

    Replace it with the Platform ID you just wrote down<Target-ID>(The ID obtained from the previous step) and replace it with your project save path<Path-to-workspace>.

Now your project has been created and some default configurations have been made. Now you can start to develop the app. Continue
Next lesson.

Tip:AddPlatform-tools/AndTools/Directory to your environment variables
Path.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.