user7380440
user7380440

Reputation:

Intellij: Gradle syn failed

I'm new to Andriod app development. I installed android Intellij, but while creating a project, I'm getting an error saying-

Gradle sync failed: Cause: error in opening zip file
Consult IDE log for more details (Help | Show Log)

I replaced my gradle file with the new file but still facing the same issue.

It's giving me the error that the gradle file can not be zipped.

Upvotes: 1

Views: 324

Answers (2)

user7380440
user7380440

Reputation:

Tried every possible solution but didn't work. At last, removed Android Studio completely and begin fresh download and installation. It worked.

Upvotes: 0

Zahid Rasheed
Zahid Rasheed

Reputation: 1554

File -> Settings -> Build, Execution, Deployment -> Build Tools -> Gradle

Check: Offline work

And then:

File -> Invalidate Caches/Restart -> Invalidate and Restart.

Upvotes: 1

Related Questions