Android Studio hangs / Freezes when project build fails

后端 未结 7 467
闹比i
闹比i 2021-02-05 01:38

I am experiencing a very wired problem since this evening.

If I have any errors in my android project, and build is failed, then my Android studio gets frozen / stuck. I

7条回答
  •  一生所求
    2021-02-05 02:24

    This is how I solved the same problem:

    • Go to your project directory using your terminal
    • run ./gradlew (or gradlew.bat) assembleDebug
    • Fix the problems reported by gradle
    • Restart android studio and the problem is gone

提交回复
热议问题