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 Creating the Fun Facts Project

Natansh Pandya
Natansh Pandya
2,810 Points

Android Studio Error

When i create a new project on Android Studio it gives me an Error message


Warning:(9, 25) Not targeting the latest versions of Android; compatibility modes apply. Consider testing and updating this version. Consult the android.os.Build.VERSION_CODES javadoc for details.

Failed to refresh Gradle project 'Fun Facts'

Unknown host 'd29vzk4ow07wi7.cloudfront.net'. Error:Enable Gradle 'offline mode' and sync project Learn about configuring HTTP proxies in Gradle

2 Answers


Your first message is just saying that you are not building your project for the current version of Android(which will be the case if you use the default project files since they're a little dated). I don't believe that this should be a problem, especially for learning.

Your second message is what's causing the real problems. Android Studio needs to download some files from the internet when you first start a project, files like the gradle plugin, and any other dependencies listed in the project. You need to make sure you have an internet connection available at the time you are starting up. You should be able to redo the process by trying to sync your project again.

Please let us know if this helps or if you need more assistance and we can try to help further.

Pradeep Kumar Reddy V
Pradeep Kumar Reddy V
655 Points

Hey James/Natansh,

I have got the below error when creating a new project.

Gradle 'FunFacts' project refresh failed. Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.

Please help resolve this error. Thank you!

Natansh Pandya
Natansh Pandya
2,810 Points

Thanks a lot James this solved my problem. the gradle files were not properly downloaded that was causing the error.

You're welcome. Have fun with Android development.