Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error:Cause: invalid stream header: 000900D9 in android studio 2.3.1

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 throw from Messages Gradle Sync dialog.

Below are the steps which i did to fixed this problem but nothing works for me

1.invalidate cache and restart

  1. Delete scripts and scripts-remapped files from C:\Users\suraj.gradle\caches\3.3

and also checked many post in stackoverflow but nothing work for me and most of the questions put here are not answered by anyone yet .

Under my project structure

Compile Sdk version :Api 25

Build tool version :25.0.2

like image 254
Suraj Bahadur Avatar asked Apr 18 '17 05:04

Suraj Bahadur


2 Answers

I was facing the same problem and was not able to figure out what exactly causes this problem.

But removing the whole .gradle folder (/home/$USER/.gradle in my case) and rebuilding the app fixed it.

like image 169
Michael Avatar answered Sep 18 '22 14:09

Michael


I noticed that many users (me included) faced this issue using the 3.3 gradle version; update to 3.5 and it will be fine

like image 27
Andrea Avatar answered Sep 17 '22 14:09

Andrea