0
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?

AndroidStudioが重い時にやること

Posted at

はじめにやって欲しいこと

  • Invalidate Caches...
    AndroidStudio上部にカーソルを合わせた時に表示されるFileから選択

  • Clean Project
    同じく上部のBuildから選択

メモリ関係

「gradle.properties」ファイルの最後に

org.gradle.jvmargs=-Xmx1024m

を追加。

PCのメモリサイズによって異なるので、

詳しくはこちらを参照。

エミュレータ

  • Instant Runを使用する
    修正した内容をビルドしなくても反映させる 簡単な内容だったらこれを使うといいかも

  • エミュレータの不要な設定をオフにする
    必要な動作確認に音声やGPS機能などの機能が使われない場合、それをオフにすることでエミュレータの動作が軽くなる可能性があります。
    configファイルに以下を追記します。

hw.audioInput = no    // 音声入力off
hw.audioOutput = no  // 音声出力off
hw.GPS = no         // GPSoff

こちらも詳しくは以下を参照。

0
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
0
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?