I downloaded Android Studio project. At the root of the project only one build.gradle with next structure:
apply plugin: 'com.android.library'
android {
}
dependencies {
}
When I run build.gradle script I get the error:
Plugin with id 'com.android.library' not found.
I know that there must be another Top-level gradle file like this:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
}
}
allprojects {
repositories {
jcenter()
}
}
But it is not present. How can i add this build file? Or maybe another way to fix this problem?
The project was created in the old version of android studio. Perhaps he had worked for another way in old version? I am waiting for help. Thank you.