Android Studio更新永无止境 [英] Android Studio updates taking forever

查看:109
本文介绍了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.

每次,在出现<正在运行修补程序...行行之后,更新将快速通过多个文件进行,直到到达"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天全站免登陆