Laurent
Laurent

Reputation: 1739

Gradle build never stops in Android Studio

I have an Android Studio project. When i compile it using Build -> make project menu the build take around 30 seconds. But when I launch my project using the "run app" or the "debug app" button the gradle build never stops. The process is stucked on "Gradle build running".

Upvotes: 0

Views: 768

Answers (1)

Laurent
Laurent

Reputation: 1739

This had nothing to do with Gradle. It was because of some files I had in the assets folder, I removed these files and it works now. Gradle was looping trying to build again and again.

These files were created when I opened a Realm database I had in the assets folder using Realm Studio :

  • default.realm.lock
  • default.realm.note
  • default.realm.management

I guess it's kind of metadata files used by Realm Studio. They are always created in the same directory of the opened database.

Upvotes: 1

Related Questions