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

后端 未结 8 1662
半阙折子戏
半阙折子戏 2021-01-04 02:12

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

相关标签:
8条回答
  • 2021-01-04 02:52

    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.

    • there is a .gradle/4.10.1 directory
    • gradle/wrapper/gradle-wrapper.properties is pointing to the same gradle version

      distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
      
    0 讨论(0)
  • 2021-01-04 02:57

    File > Invalidate Caches / Restart

    0 讨论(0)
提交回复
热议问题