Android Studio 更新需要永远 [英] Android Studio updates taking forever

查看:30
本文介绍了Android Studio 更新需要永远的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 macOS High Sierra 系统上运行的 Android Studio 3.0 上看到系统映像更新的安装速度非常慢.我所说的非常慢"是什么意思?每次系统映像更新都需要花费一个小时的时间.令我反感的是,最新的更新集(从组件安装程序日志中显示)花了八个小时:

I'm seeing extremely slow installs of system image updates on my Android Studio 3.0 running on a macOS High Sierra system. What do I mean by "extremely slow"? Every system image update takes the better part of an hour. To my disgust, the latest set of updates (shown here from the component installer log) took over eight hours:

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.

到目前为止,一切都发生得相当快.然后更新程序开始实际更新内容:

Up to this point, everything happens fairly quickly. Then the updater starts actually updating things:

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".进度条似乎在那里冻结了大约半小时或更长时间.该文件完成后,每个补丁的其余部分都会很快进行.

Each time, after the line Running patcher... appears, the update proceeds quickly through several files until it reaches "system.img". The progress bar seems to freeze there for about half an hour or more. Once that file completes, the rest of each patch proceeds very quickly.

当有系统映像要更新时,当我开始更新时,我从来没有运行模拟器或构建任务.对于这个最新的更新,我确实打开了两个项目窗口.

When there are system images to update, I never have emulators or build tasks running when I start the update. For this latest update, I did have two project windows opened.

这种缓慢的更新正常吗?我可以做些什么来加快速度?

Is this slow update normal? Is there something I can do to speed it up?

推荐答案

我有同样的问题.

如您所说,删除当前 SDK 版本并从头重新安装它会更快(此处仅下载时间是变量).

As you said, deleting the current SDK version and reinstalling it from scratch is faster (only download time is the variable here).

我为此寻找了一个问题,由于没有找到,我决定在这里创建它:https://issuetracker.google.com/issues/79307669

I've looked for an issue for this and since I didn't find one I decided to create it here: https://issuetracker.google.com/issues/79307669

请随意给它加星标.

我怀疑这与 Android Studio 的版本有关,因此我邀请您在该问题的评论中写下有关您系统的一些信息:

I doubt this is related to the version of Android Studio so I invite you to write in comment of that issue some information on your system:

  • Android Studio 版本,
  • Java 版本,
  • 操作系统,
  • CPU,
  • RAM(以及其中有多少用于 Android Studio JVM),
  • 磁盘存储类型(磁性/固态驱动器)
  • 文件系统

希望我们找到一些可能导致问题的常见变量.

in the hope we find some common variable that can cause the issue.

这是我的:AS 3.2 Canary 13、OS Linux(Ubuntu 64 位 16.04 LTS)、CPU:Intel i7、RAM 16 GB(-Xmx4g)、存储磁驱动器(非固态)、文件系统:Ext4

This is mine: AS 3.2 Canary 13, OS Linux (Ubuntu 64 bit 16.04 LTS), CPU: Intel i7, RAM 16 GB (-Xmx4g), Storage Magnetic Drive (not solid), Filesystem: Ext4

这篇关于Android Studio 更新需要永远的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆