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
Kedious Mutandwa
4,929 PointsAndroid 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
Gloria Dwomoh
13,116 PointsYou 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. *
Kedious Mutandwa
4,929 PointsKedious Mutandwa
4,929 PointsI am using windows there is no Android Studio tab......I downloaded the setup from treehouse
Gloria Dwomoh
13,116 PointsGloria Dwomoh
13,116 PointsOh okay, then go to File - Other Setting -> Default Settings -> Gradle -> Offline Work ....
Kedious Mutandwa
4,929 PointsKedious Mutandwa
4,929 PointsError:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle. thats my error
Gloria Dwomoh
13,116 PointsGloria Dwomoh
13,116 PointsYou 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.