I can’t use Android Studio (Gradle Project Sync failed. Basic Functionality ... )

Asked

Viewed 1,020 times

1

I looked, I looked and I couldn’t find the solution to my problem.

First I will put the images of my situation, but in advance I will inform that my processor is AMD. In this case I just need to be able to build/re-build for a Layout preview, since we can emulate the app in other ways.

Quando abro o projeto

Referência de uma possível relação com o problema

The second image I referenced from the link https://stackoverflow.com/questions/48096905/android-studio-3-0-1-error-gradle-project-sync-failed-basic-functionality-e-g inserir a descrição da imagem aqui that in my Android Studio is empty.

Versions:
* Android Studio 3.1.4
* Gradle 4.10
* SDK Tools 26.1.1
* Android Platform Version API 28 Revision 6

2 answers

0

Before anything else check that jdk is correctly installed on your system. Gradle does not work without an updated version of Java.

What may be happening is that Android Studio must be looking for a specific version of Gradle and you only have version 4.10 or the version that Android Studio is looking for is 4.10 but the folder is corrupted.

To correct:

  • Close the Android Studio .

  • With the file explorer locate the Android Studio folder and open the Gradle subfolder. Open and check existing versions.

  • Go to the page of Gradle distributions, locate the versions your Android doesn’t have. The files you need are the ones that end with -all.zip. For example Gradle version 5.0 will be the file named as Gradle-5.0-all.zip.

  • Download the files now. At the root of each compressed file will be a folder with the version name drag(unzip) the folder to the subfolder Gradle inside the Android Studio folder. Repeat the process for each version not found on your system.

  • If you suspect that the folder containing version 4.10 is corrupted, scan the media that hosts the folder and replace the current version with the equivalent.

  • Open the Android Studio.

  • Go to File->Sttings->Build, Execution & Depolyment->Gradle and select Use Gradle Distribution.

  • In Gradle Home put the path to the folder of the latest Gradle version and Ok.

  • Wait while Android Studio compiles the Gradle. If no error message worked. In case of any error try with another version until you find the one that is suitable for your system.

0

Go to your project folder, right-click access Estates and on the tab Security, check permission and allow all permissions.

  • I did this, but nothing has changed. It continued the same problem.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.