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 with Java Getting Started with Android Running the Fun Facts Project

Gradle Project Sync Failed.

I see someone had a similar problem. My message is "Gradle Project Sync Failed. Basic Functionality (editing, debugging) will not work properly". I tried updating but i'm already on the most current version.

The similar error I get is :

"Error:Failed to resolve: Could not resolve com.android.support:support-v4:28.0.0-rc02. Required by:

project :app

seems library not found so the command:

import android.support.v7.app.AppCompatActivity;

is unknown.

Below complete error message:

C:\Users\105704511\AndroidStudioProjects\FunFacts\app\build.gradle Error:Error:Failed to resolve: Could not resolve com.android.support:support-v4:28.0.0-rc02.

Required by:

project :app

<a href="openFile:C:/Users/105704511/AndroidStudioProjects/FunFacts/app/build.gradle">Open File</a> Error:Error:Failed to resolve: Could not resolve com.android.support:appcompat-v7:28.0.0-rc02.

Required by:

project :app

<a href="openFile:C:/Users/105704511/AndroidStudioProjects/FunFacts/app/build.gradle">Open File</a> Error:Error:Failed to resolve: Could not resolve com.android.support.constraint:constraint-layout:1.1.3.

Required by:

project :app

<a href="openFile:C:/Users/105704511/AndroidStudioProjects/FunFacts/app/build.gradle">Open File</a> Error:Error:Failed to resolve: Could not resolve com.android.support.test.espresso:espresso-core:3.0.2.

Required by:

project :app

<a href="openFile:C:/Users/105704511/AndroidStudioProjects/FunFacts/app/build.gradle">Open File</a> Error:Error:Failed to resolve: Could not resolve junit:junit:4.12.

Required by:

project :app

<a href="openFile:C:/Users/105704511/AndroidStudioProjects/FunFacts/app/build.gradle">Open File</a>

1 Answer

I think you should also check your internet connection. I always fail to sync when I have a slow connection. Hope it helps