LoginSignup
11
13

More than 5 years have passed since last update.

プロキシ環境下でAndroid Studioを起動するとエラーが起きる

Posted at

Android Studioをインストールして起動したところ、以下のようなメッセージでエラーダイアログが出てそこから進めなくなってしまいました。

The following SDK components were not installed: extra-android-m2repository, tools, addon-google_apis-google-21, android-21, sys-img-x86-addon-google_apis-google-21, source-21, extra-google-m2repository

原因はプロキシ設定ができていないことで、設定ファイルを書き換えると、起動時に設定のためのウインドウが表示されるようになります。
(このときいくつかエラーダイアログが出る場合がありますが、めげずに何回か試すと起動できました)


手順
* (ユーザーフォルダ)/.AndroidStudio/config/options/other.xml を開く
* USE_HTTP_PROXYUSE_PROXY_PACの設定をそれぞれtrueにする

other.xml
    :
    <option name="USE_HTTP_PROXY" value="true" />
    <option name="USE_PROXY_PAC" value="true" />
    :
  • Android Studioを起動する

(起動の途中でGUIから設定できるようになっていると便利ですね・・)

※ 参考にしたサイト
Android Studio doesn't start, fails saying components not installed - Stack Overflow

11
13
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
11
13