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:
org.gradle.jvmargs=-Xmx1024m
to my ~/.gradle/gradle.properties filefile.encoding=utf-8
to my ~/.gradle/gradle.properties fileorg.gradle.daemon=false
in my ~/.gradle/gradle.properties fileand 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.
try with these solutions. one of them can solve your problem:
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.