It is an eclipse adt based android application,facing the mentioned error while importing the project into android studio,please help.
error: 'could not find com.android.tools.build:gradle:4.0.0'
It is an eclipse adt based android application,facing the mentioned error while importing the project into android studio,please help.
error: 'could not find com.android.tools.build:gradle:4.0.0'
Make sure 'Android SDK tools' is updated and whether you have installed the latest version of eclipse - 2020.06. Also sync project from gradle files. If you have done these already, tell me.
I don't think that com.android.tools.build:gradle:4.0.0
is available in jcenter. But it surely exists in maven.google.com. Please try adding google()
repository:
repositories {
google()
jcenter()
}
Also you need to make sure that AndroidStudio version matches com.android.tools.build:gradle
version. I.e. version 4.0.0
works best with Android Studio 4.0