Android gradle 3.0.0 - Unexpected end of ZLIB input stream

后端 未结 5 1898
青春惊慌失措
青春惊慌失措 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 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.

提交回复
热议问题