I have in my hand a project of 3 years ago and I need to put it to run, so when I opened the project in android studio already gave the default gradle error, I changed the line
classpath 'com.android.tools.build:gradle:1.0.0-rc2' -> classpath 'org.gradle:gradle 2.2.1'
But this is returning the following error:
Error:Could not find org.gradle:gradle 2.2.1:.
Searched in the following locations:
file:/C:/Program Files/Android/Android Studio/gradle/m2repository/org/gradle/gradle 2.2.1//gradle 2.2.1-.pom
file:/C:/Program Files/Android/Android Studio/gradle/m2repository/org/gradle/gradle 2.2.1//gradle 2.2.1-.jar
https://jcenter.bintray.com/org/gradle/gradle 2.2.1//gradle 2.2.1-.pom
https://jcenter.bintray.com/org/gradle/gradle 2.2.1//gradle 2.2.1-.jar
https://repo1.maven.org/maven2/org/gradle/gradle 2.2.1//gradle 2.2.1-.pom
https://repo1.maven.org/maven2/org/gradle/gradle 2.2.1//gradle 2.2.1-.jar
Required by:
:android:unspecified
Someone can help me do this, without me having to keep trying to update, go back version and download a thousand things until I burst my memory, someone who knows exactly what is happening.