I've been trying to build my android app with gradle build, and to get it download required dependencies and jar files automatically, I added in my settings.gradle
Код: Выделить всё
apply plugin: 'com.android.application'
apply plugin: 'com.android.library'
Код: Выделить всё
plugins {
// Apply the application plugin to add support for building a CLI application in Java
}
repositories {
google()
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
implementation 'com.google.guava:guava:30.1.1-jre'
classpath 'com.android.tools.build:gradle:7.1'
}
application {
mainClass = 'MyProject.App'
}
tasks.named('test') {
useJUnitPlatform()
}
Код: Выделить всё
A problem occurred while evaluating settings 'MyProject'.
> Plugin with id 'com.android.application' not found.
Источник: https://stackoverflow.com/questions/717 ... -not-found
Мобильная версия