下载安装Android Studio
创新互联服务项目包括乌当网站建设、乌当网站制作、乌当网页制作以及乌当网络营销策划等。多年来,我们专注于互联网行业,利用自身积累的技术优势、行业经验、深度合作伙伴关系等,向广大中小型企业、政府机构等提供互联网行业的解决方案,乌当网站推广取得了明显的社会效益与经济效益。目前,我们服务的客户以成都为中心已经辐射到乌当省份的部分城市,未来相信会继续扩大服务区域并继续获得客户的支持与信任!
Android Studio 中文社区
1.Install Android Studio
Download Android Studio and Launch the downloaded EXE file.
Needs JDK 6 or greater.
安装JDK:
JAVA_HOME | 指明JDK安装路径,就是刚才安装时的路径C:\Program Files\Java\jdk1.8.0_05,此路径下包括lib,bin,jre等文件夹(此变量最好设置,因为以后运行tomcat,eclipse,ant 等都需要使用此变量) |
PATH | Path使得系统可以在任何路径下识别java命令,设为: %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin |
CLASSPATH | CLASSPATH为java加载类(class or lib)路径,只有类在classpath中,java命令才能识别,设为: .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar (要加.表示当前路径) |
>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 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 p_w_picpaths 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。
With the Android SDK Manager window open, select "Settings" in the left pane.
On the right, in the "Misc" section, check the checkbox labeled "Force https://... sources to be fetched using http://..."
Click Save & Apply.
B Adding New Sites
在第三方设备制造商的Android设备使用提供的第三方API库,安装他们的Android SDK add-on。如果SDK add-on repository 在他们的网站上,则在SDK Manager上添加他们的site:
Select Available Packages in the left panel.
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.
1.Creating an Android Project
本文标题:AndroidStudio--Installationanduseage
本文网址:/article16/jogegg.html
成都网站建设公司_创新互联,为您提供域名注册、定制开发、网站设计公司、外贸网站建设、用户体验、网站建设
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联