Android gradle 3.0.0 - Unexpected end of ZLIB input stream

后端 未结 5 1897
青春惊慌失措
青春惊慌失措 2021-01-14 16:48

After updating android studio to 3.0 and switching to gradle plugin 3.0.0 I am getting this error:

Gradle \'...\' project refresh failed
    Err         


        
相关标签:
5条回答
  • 2021-01-14 16:59

    It's solved in MAC

    1. uninstall gradle brew uninstall gradle
    2. brew install gradle
    3. cd ~/[users].gradle/
    4. rm -r *
    5. synchronize android studio
    0 讨论(0)
  • 2021-01-14 17:02

    I have also been experiencing this error with gradle 4.0.0 and 4.0.1. Unfortunately deleting the Users/<user>/.gradle folder didn't do the trick. I had to uninstall and re-install android studio along with deleting the Users/<user>/.gradle folder again

    0 讨论(0)
  • 2021-01-14 17:03

    Pls. see this official tutorial on gradle migration to 3.0.

    Had similar issue - the reason was that in manifest was written meta_data instead of meta-data. For older gradle it was just warning, for new - fatal error.

    Maybe you have something similar.

    0 讨论(0)
  • 2021-01-14 17:10

    For me worked to delete everything in:

    C:\Users\userName\.gradle
    
    0 讨论(0)
  • 2021-01-14 17:12

    I had the same problem after my studio upgraded from 2.3.3 to 3.0, of course I have upgraded my project gradle plugin version from 2.3.3 to 3.0.

    I think the gradle plugin jar file is broken and not readable or any unknow exception happened, so delete it and re-download.

    What I propose is to,

    • Delete gradle folder in studio installed path (mine is D:\Tool\android-studio\gradle),
    • Re-sync your project. The project will re-download its dependencies.

    If the problem is not solved, try to delete your gradle user data (mine is C:\Users\tea\.gradle) and then re-sync project.

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