1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Android Studioでbuild.gradleやsetting.gradleの変更がうまく反映されないときの対処法

Last updated at Posted at 2018-03-30
  1. android studio の当該projectを閉じます。
    androidstudio2.png

  2. project直下とうまく反映されないappフォルダやライブラリフォルダ直下の、.ideaフォルダと、.imlファイルを削除します。
    gradleの整え方.png
    gradle整え方2.png

  3. android studioでprojectを開きなおします。

  4. これで大体うまくいく。

  • 欠点
  • .ideaフォルダ以下のファイルや.imlファイルがすべて作り直されるのでソースをgit管理してる場合は.ignoreにそれらを足しておかないと大量のdiffが生まれてしまう。
1
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?