我在MacOS High Sierra系统上运行的Android Studio 3.0上看到系统映像更新安装速度非常慢。我是什么意思"非常慢"?每个系统映像更新都需要花费一小时的时间。令我厌恶的是,最新的一组更新(在组件安装程序日志中显示)花了八个多小时:
To install:
- Google APIs Intel x86 Atom System Image (system-images;android-24;google_apis;x86)
- Google APIs Intel x86 Atom_64 System Image (system-images;android-25;google_apis;x86_64)
- Google APIs Intel x86 Atom_64 System Image (system-images;android-23;google_apis;x86_64)
- Google APIs ARM 64 v8a System Image (system-images;android-24;google_apis;arm64-v8a)
- Google APIs Intel x86 Atom_64 System Image (system-images;android-22;google_apis;x86_64)
- Google APIs Intel x86 Atom System Image (system-images;android-23;google_apis;x86)
- Google APIs Intel x86 Atom_64 System Image (system-images;android-21;google_apis;x86_64)
- Google APIs ARM EABI v7a System Image (system-images;android-22;google_apis;armeabi-v7a)
- Google Play Intel x86 Atom System Image (system-images;android-24;google_apis_playstore;x86)
- Google APIs ARM EABI v7a System Image (system-images;android-24;google_apis;armeabi-v7a)
- Google APIs Intel x86 Atom System Image (system-images;android-26;google_apis;x86)
- Google APIs Intel x86 Atom System Image (system-images;android-22;google_apis;x86)
- Google APIs Intel x86 Atom System Image (system-images;android-21;google_apis;x86)
- Google APIs Intel x86 Atom System Image (system-images;android-19;google_apis;x86)
- Google APIs Intel x86 Atom_64 System Image (system-images;android-24;google_apis;x86_64)
- Google APIs Intel x86 Atom System Image (system-images;android-25;google_apis;x86)
- Google APIs ARM EABI v7a System Image (system-images;android-23;google_apis;armeabi-v7a)
Preparing "Install Google APIs Intel x86 Atom System Image (revision: 19)".
Downloading https://dl.google.com/android/repository/sys-img/google_apis/x86-24_r19.zip
"Install Google APIs Intel x86 Atom System Image (revision: 19)" ready.
Preparing "Install Google APIs Intel x86 Atom_64 System Image (revision: 10)".
Downloading https://dl.google.com/android/repository/sys-img/google_apis/sys-img-4252396-sdk_google_phone_x86_64-sdk_addon-4414732-sdk_google_phone_x86_64-sdk_addon-patch.jar
"Install Google APIs Intel x86 Atom_64 System Image (revision: 10)" ready.
// lots of similar lines deleted
Preparing "Install Google APIs ARM EABI v7a System Image (revision: 25)".
Downloading https://dl.google.com/android/repository/sys-img/google_apis/sys-img-4309849-sdk_google_phone_armv7-sdk_addon-4409279-sdk_google_phone_armv7-sdk_addon-patch.jar
"Install Google APIs ARM EABI v7a System Image (revision: 25)" ready.
到目前为止,一切都很快发生。然后更新程序开始实际更新事物:
Installing Google APIs Intel x86 Atom System Image in /Users/tedhopp/Library/Android/sdk/system-images/android-24/google_apis/x86
"Install Google APIs Intel x86 Atom System Image (revision: 19)" complete.
"Install Google APIs Intel x86 Atom System Image (revision: 19)" finished.
Running patcher...
Patch applied.
Done
"Install Google APIs Intel x86 Atom_64 System Image (revision: 10)" complete.
"Install Google APIs Intel x86 Atom_64 System Image (revision: 10)" finished.
Running patcher...
Patch applied.
Done
// etc.
每次出现行Running patcher...
后,更新会快速通过多个文件,直到达到" system.img"。进度条似乎在那里冻结了大约半小时或更长时间。该文件完成后,每个补丁的其余部分都会很快完成。
当有系统映像要更新时,我开始更新时从未运行过仿真器或构建任务。对于这个最新的更新,我确实打开了两个项目窗口。
这种缓慢更新是否正常?我有什么办法可以加快速度吗?
答案 0 :(得分:3)
我也有同样的问题。
正如您所说,删除当前的SDK版本并从头开始重新安装它的速度更快(此处仅下载时间为变量)。
我为此寻找了一个问题,因为我找不到一个我决定在这里创建它: https://issuetracker.google.com/issues/79307669
随意为它加注星标。
我怀疑这与Android Studio版本有关,所以我邀请您在该问题的评论中写下您系统上的一些信息:
希望我们找到一些可能导致问题的常见变量。
这是我的:
AS 3.2 Canary 13,OS Linux(Ubuntu 64 bit 16.04 LTS),CPU:Intel i7,RAM 16 GB(-Xmx4g
),存储磁盘驱动器(非固态),文件系统:Ext4 < / p>