I am using android studio 2.3.1 and it was working fine yesterday But now it throw me an error Error:Cause: invalid stream header: 000900D9 this message th
It's gradle version.
I've updated gradle from 4.6 to 4.10.1 on one branch. Switched to another branch without gradle update and couldn't sync it. Updating gradle to the latest version on all branches helped solved the problem.
So check which gradle version you have in gradle/wrapper/gradle-wrapper.properties
file and try to update it to match your .gradle
directory (or just update to the latest one)
E.g.
.gradle/4.10.1
directorygradle/wrapper/gradle-wrapper.properties
is pointing to the same gradle version
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
File > Invalidate Caches / Restart