安装Android Studio及自动下载SDK的过程

连接可以访问Google的网络,在https://developer.android.com/studio/#downloads 自动下载Android Studio,下载后解压缩。

在解压缩后的目录下执行~/android-studio-ide-181.5014246-linux/android-studio/bin$ ./studio.sh

启动Android Stuido,默认配置,在进入下载SD卡后,下载过程如下:

经过一段时间的下载后,安装完成:

默认安装了以下内容:

Preparing "Install Android Support Repository (revision: 47.0.0)".
Downloading https://dl.google.com/android/repository/android_m2repository_r47.zip
"Install Android Support Repository (revision: 47.0.0)" ready.
Installing Android Support Repository in /home/gym/Android/Sdk/extras/android/m2repository
"Install Android Support Repository (revision: 47.0.0)" complete.
"Install Android Support Repository (revision: 47.0.0)" finished.
Preparing "Install Android SDK Tools (revision: 26.1.1)".
Downloading https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
"Install Android SDK Tools (revision: 26.1.1)" ready.
Installing Android SDK Tools in /home/gym/Android/Sdk/tools
"Install Android SDK Tools (revision: 26.1.1)" complete.
"Install Android SDK Tools (revision: 26.1.1)" finished.
Preparing "Install SDK Patch Applier v4 (revision: 1)".
Downloading https://dl.google.com/android/repository/3534162-studio.sdk-patcher.zip.bak
"Install SDK Patch Applier v4 (revision: 1)" ready.
Installing SDK Patch Applier v4 in /home/gym/Android/Sdk/patcher/v4
"Install SDK Patch Applier v4 (revision: 1)" complete.
"Install SDK Patch Applier v4 (revision: 1)" finished.
Preparing "Install Android Emulator (revision: 27.3.10)".
Downloading https://dl.google.com/android/repository/emulator-linux-4969155.zip
"Install Android Emulator (revision: 27.3.10)" ready.
Installing Android Emulator in /home/gym/Android/Sdk/emulator
"Install Android Emulator (revision: 27.3.10)" complete.
"Install Android Emulator (revision: 27.3.10)" finished.
Preparing "Install Android SDK Platform-Tools (revision: 28.0.1)".
Downloading https://dl.google.com/android/repository/platform-tools_r28.0.1-linux.zip
"Install Android SDK Platform-Tools (revision: 28.0.1)" ready.
Installing Android SDK Platform-Tools in /home/gym/Android/Sdk/platform-tools
"Install Android SDK Platform-Tools (revision: 28.0.1)" complete.
"Install Android SDK Platform-Tools (revision: 28.0.1)" finished.
Preparing "Install Sources for Android 28 (revision: 1)".
Downloading https://dl.google.com/android/repository/sources-28_r01.zip
"Install Sources for Android 28 (revision: 1)" ready.
Installing Sources for Android 28 in /home/gym/Android/Sdk/sources/android-28
"Install Sources for Android 28 (revision: 1)" complete.
"Install Sources for Android 28 (revision: 1)" finished.
Preparing "Install Android SDK Platform 28 (revision: 6)".
Downloading https://dl.google.com/android/repository/platform-28_r06.zip
"Install Android SDK Platform 28 (revision: 6)" ready.
Installing Android SDK Platform 28 in /home/gym/Android/Sdk/platforms/android-28
"Install Android SDK Platform 28 (revision: 6)" complete.
"Install Android SDK Platform 28 (revision: 6)" finished.
Preparing "Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)".
Downloading https://dl.google.com/android/repository/build-tools_r28.0.3-linux.zip
"Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" ready.
Installing Android SDK Build-Tools 28.0.3 in /home/gym/Android/Sdk/build-tools/28.0.3
"Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" complete.
"Install Android SDK Build-Tools 28.0.3 (revision: 28.0.3)" finished.
Preparing "Install Google Repository (revision: 58)".
Downloading https://dl.google.com/android/repository/google_m2repository_gms_v11_3_rc05_wear_2_0_5.zip
"Install Google Repository (revision: 58)" ready.
Installing Google Repository in /home/gym/Android/Sdk/extras/google/m2repository
"Install Google Repository (revision: 58)" complete.
"Install Google Repository (revision: 58)" finished.
Parsing /home/gym/Android/Sdk/build-tools/28.0.3/package.xml
Parsing /home/gym/Android/Sdk/emulator/package.xml
Parsing /home/gym/Android/Sdk/extras/android/m2repository/package.xml
Parsing /home/gym/Android/Sdk/extras/google/m2repository/package.xml
Parsing /home/gym/Android/Sdk/patcher/v4/package.xml
Parsing /home/gym/Android/Sdk/platform-tools/package.xml
Parsing /home/gym/Android/Sdk/platforms/android-28/package.xml
Parsing /home/gym/Android/Sdk/sources/android-28/package.xml
Parsing /home/gym/Android/Sdk/tools/package.xml
Android SDK is up to date.
点击Finish,弹出创建Android Studio project窗口:

一路默认,最后创建的工程窗口如下:

然后会自动下载编译所需的组建,如gradle等,如果下载失败,可以重新下载,如下图:

 

还可以下载SDK其他的API,如下图又下载安装了Android N和O的API:

以及下载安装NDK:

这是下载安装完后的界面显示:

 

发布了270 篇原创文章 · 获赞 273 · 访问量 377万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览