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