1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Android Studio][Emulator] エミュレータ SDK updateが失敗する "Not in GZIP format" 解消法

Posted at

概要

Android Studio にてEmulator SDKのupdate の際に、
ダウンロード中に画面閉じたなどで中断したなどすると
どうやら再度のダウンロードが失敗するようだ

Android Studioのcacheを削除したり、再起動したり、通常のUIでざっと色々試したが、うまく行かず
調べてもすぐに方法が見つからなかったので 記載しておく。

状況

Android Studio emulator SDK updateが以下のように失敗

Packages to install: - Android Emulator (emulator)


Preparing "Install Android Emulator v.36.2.12".
Downloading https://dl.google.com/android/repository/emulator-darwin_aarch64-14214601.zip
An error occurred while preparing SDK package Android Emulator: Not in GZIP format.
"Install Android Emulator v.36.2.12" failed.
Failed packages:
- Android Emulator (emulator)

解消法

結論から申すと 以下でcacheを削除することができた (macOSの場合)
(Windows でも同様なディレクトリがあるのではと思われる)

rm -rf ~/Library/Android/sdk/.downloadIntermediates/
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?