Ubuntu16.04 LTS 下安装 Android Studio 2.2.2 的详细步骤
下载AndroidSDK,官网:www.android.com我相信很多人跟我一样,进不去。AndroidStudio中文官网www.android-studio.org进去下载,在终端解压到想安装SDK的目录(设SDK目录为$ASDK_HOME)即安装完成。
进入目录$ASDK_HOME/tools/,终端运行命令./android进入SDKManager.通过这个软件,可以选择下载相关的开发包,有不同版本的SDK及其源码文档等,注意:必须下载Extras下的AndroidSupportRepository包。这个过程中,你也会遇到一个大麻烦,你注意底部的状态栏就会发现,需要从google下载很多包,极有可能遇到卡住不动的情况,没什么好办法,要么买VPN,要么更改hosts文件。我的hosts文件如下:
127.0.0.1localhost 127.0.1.1minamoto-Lenovo #ThefollowinglinesaredesirableforIPv6capablehosts ::1ip6-localhostip6-loopback fe00::0ip6-localnet ff00::0ip6-mcastprefix ff02::1ip6-allnodes ff02::2ip6-allrouters #Googlepage 203.208.46.146www.google.com 74.125.113.121developer.android.com 203.208.51.71dl.google.com #203.208.46.146dl-ssl.google.com 74.125.237.1dl-ssl.google.com
上面的IP地址从网上百度得来的,以上地址暂时好用,强烈推荐超级PING获得IP。
下载AndroidStudio,参照1中的中文官网地址,下载后解压(设AndroidStudio目录为$AS_HOME),进入$AS_HOME/bin/运行./studio.sh进入安装导航。安装结束,创建项目前,打开Configure-->ProjectDefaults-->ProjectStructure-->SDKLocation,设置SDK路径。
没有成功使用模拟器,不知道时太慢,还是有什么安装问题,启动模拟器,电脑直接卡死了,动不了。于是我就使用了一个不用的Android真机。
以上所述是小编给大家介绍的Ubuntu16.04LTS下安装AndroidStudio2.2.2的详细步骤,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对毛票票网站的支持!