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

Android Studio Graddle Error

whenever i start my new project there is a gradle sync message with an error sayin Enable Gradle 'offline mode' and syncle project

1 Answer

You should go to Android Studio -> Preferences -> Gradle -> Offline Work and see if the checkbox in "Offline Work" is checked. If it is, uncheck it (if it isn't check it) and see if that helps. *

I am using windows there is no Android Studio tab......I downloaded the setup from treehouse

Oh okay, then go to File - Other Setting -> Default Settings -> Gradle -> Offline Work ....

Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle. thats my error

You need to have a stable internet connection while running android studio. Have a look at the first answer here - Does Android studio need internet connection to build project? also check this out - Gradle project refresh fails upon starting the project.