码迷,mamicode.com
首页 > 移动开发 > 详细

Android Studio -- Installation and useage

时间:2014-09-12 15:22:25      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:android

    下载安装Android Studio

    Android Studio 中文社区

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 MangerTools > 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 this package 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 is recommended to download system images of all versions of Andorid your app 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 to 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-tools to your PATH environment variable.

附:

A Problems connecting to the SDK repository

使用SDK Manager下载packages遇到connection problem,可以使用http代替https。

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

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

  3. Click Save & Apply.

B Adding New Sites

在第三方设备制造商的Android设备使用提供的第三方API库,安装他们的Android SDK add-on。如果SDK add-on repository 在他们的网站上,则在SDK Manager上添加他们的site:

  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 will now be listed under a new item named User Add-ons.


    

本文出自 “飒飒秋风” 博客,请务必保留此出处http://xjhznick.blog.51cto.com/3608584/1551515

Android Studio -- Installation and useage

标签:android

原文地址:http://xjhznick.blog.51cto.com/3608584/1551515

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!