Search code examples
android-studiogradleandroid-gradle-pluginbuild.gradleatlassian-sourcetree

android gradle Received invalid response from the daemon


My project gradle is in building situation on the other hand i pushed the code on bitbucket after pushing when i come back to android studio this error comes

Error:Received invalid response from the daemon: org.gradle.launcher.daemon.protocol.ForwardInput@225d8c3e is a result of a type we don't have a strategy to handle. Earlier, 'Build{id=64d7a5e0-2e12-4d52-950f-6540c826a70b.1, currentDir=C:\Users\Project Directory}' request was sent to the daemon. Diagnostics: No diagnostics available.

Sometimes come this Error

Error:An existing connection was forcibly closed by the remote host

Please help me to resolve this issue.


Solution

  • I got the solution to this issue. Just delete the

    .gradle
    

    folder from your project repository and build in again your problem resolved.
    I hope it helps others.