Android Studio--Installation and useage

Source: Internet
Author: User

Download install Android Studio

Android Studio Chinese Community

1.Install Android Studio

Download Android Studio and Launch the downloaded EXE file.

Needs JDK 6 or greater.

>javac-version

2.Adding SDK Packages

    android SDK manger: tools  >  android  >  sdk Manager (from Android Studio)

3.Recommended Packages:

1) SDK Tools (Required): Keep this up to date.

2) SDK Platform-tools (Required): Must install the "this" when first install the SDK.

3) SDK Platform (Required): Recommend use the latest version as your build target. To run your app on older version, you must build against the latest version in order.

Get to know Minsdkversion vs. Build Target, refer to Uses-sdk-element <uses-sdk>

What API level should I target?

4) System Image (Recommended): Using the Emulator

It's recommended to download system images of all versions of Andorid your apps supports and test your app running on them With the emulator.

5) Android Support (Recommended): includes a static library, that supports older versions.

6) SDK Samples (Recommended): The source code you can use for learn about Android or reuse in your own app. One sample package for one Android platform version.

Tip: For easy access to the SDK tools from a command line, add the location of the SDK ' s Tools/and platform-tool s to your PATH environment variable.

Report:

A problems connecting to the SDK repository

Using SDK Manager Download packages encountered connection problem, you can use HTTP instead of HTTPS.

    1. With the Android SDK Manager windows open, select "Settings" in the left pane.

    2. On the ' Misc ' section, check the checkbox labeled "Force https://... sources to be fetched using http://..."

    3. Click Save & Apply.

B Adding New Sites

The third party device manufacturer's Android device uses the provided third-party API library to install their Android SDK add-on. If the SDK add-on repository on their website, add their site to the SDK Manager:

    1. Select Available Packages in the left panel.

    2. Click Add Add-on Site and enter the URL of the repository.xml file. Click OK.

Any SDK packages available from the site would now is listed under a new item named User add-ons.



This article is from "Whispering Autumn Wind" blog, please be sure to keep this source http://xjhznick.blog.51cto.com/3608584/1551515

Android Studio--Installation and useage

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.