简体   繁体   中英

Gradle build daemon disappeared unexpectedly… Android Studio 4.0.1

Whenever I run a project in Android Studio 4.0.1 I get the following error:

Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

I have tried:

  • adding org.gradle.jvmargs=-Xmx1024m to my ~/.gradle/gradle.properties file
  • "Clear/Invalidate caches"
  • adding file.encoding=utf-8 to my ~/.gradle/gradle.properties file
  • using org.gradle.daemon=false in my ~/.gradle/gradle.properties file
  • deleting the.gradle file
  • closing all instances of Android studio
  • the solutions in this post

and none have worked.

Does anyone have any idea why this is happening and how I can fix it?

Downgrade Gradle to version 5.3

./gradlew wrapper --gradle-version=5.3

This fixed the issue for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM