Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App (2014) Getting Started with Android Setting Up an Android Development Environment for Mac

Emanuel Burgess
Emanuel Burgess
149 Points

When I open up android studio after creating my app I get the message: "Gradle "fun facts" project refresh failed.

I then get the message error: Cause: error in opening zip file

1 Answer

Harry James
Harry James
14,780 Points

Hey Emanuel!

I would guess this to be that when Gradle was downloading itself, something went wrong and the zip file went corrupt, causing you to not be able to open it.

Before you continue, close down Android Studio

You can force Gradle to redownload itself by deleting the .gradle file from your project (Please use Windows Explorer, Finder or a similar program to do this).

If that doesn't work, try also deleting Gradle from the root level. This is usually found under your user directory.


Hopefully this should help you out but, if not, give me a shout. Also, if you are unable to find the gradle directories, tell me what your Operating System is and I'll try and find the default gradle installation location for you :)