Ошибка сборки gradle Плагин с идентификатором com.android.application не найденAndroid

Форум для тех, кто программирует под Android
Ответить
Гость
 Ошибка сборки gradle Плагин с идентификатором com.android.application не найден

Сообщение Гость »


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'
And my build.gradle looks like this

Код: Выделить всё

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()
}
When I try running gradle build, I get an error:

Код: Выделить всё

A problem occurred while evaluating settings 'MyProject'.
> Plugin with id 'com.android.application' not found.
I did some research, and every answer on the Internets says it's probably due to the plugin version, so I tried solving the problem by using versions 4.1, 4.2, 7.1, and 7.0 for of 'com.android.tools.build:gradle', with no avail.


Источник: https://stackoverflow.com/questions/717 ... -not-found
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»