Android Studio com.android.Android

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Android Studio com.android.

Сообщение Anonymous »

Я получаю следующую ошибку в Android Studio narhwal 2025.1.1: < /p>
Неудача: сборка не удалась с исключением. /> < /li>
Что пошло не так:
плагин [id: 'com.android.application', версия: '8.14.3', Apply: false] не был найден ни в одном из следующих источников: < /p>
< /li>
< /ul>


Включенные сборки (не включенные сборки содержит этот плагин) < /li>
Репозитории плагинов (не могут разрешить артефакт плагина 'com.android.application: com.android.application.gradle.plugin: 8.14.3')
searched в следующих reposistories:
goolgen
goonaven. /> Репозиторий плагина Gradle Central < /li>
< /ul>

Попробуйте: < /li>
< /ul>

Запустить с опцией -stacktrace, чтобы получить Trace Trace. Insights.
Получите дополнительную помощь по адресу https://help.gradle.org. < /p>
< /blockquote>
Построить в 19s
error: gradle asswerblebug с удалинием с кодом выхода 1 < /p>
prostings.sets.gradle имеет: < /p>
< /p>
p> settings.gradle

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

pluginManagement {
def flutterSdkPath = {
def properties = new Properties()
file("local.properties").withInputStream { properties.load(it) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
return flutterSdkPath
}()
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0" // apply true (default) or explicitly set
id "com.android.application" version "8.14.3" apply false
id "org.jetbrains.kotlin.android" version "2.2.0" apply false
}
include ":app"
< /code>
build.gradle имеет: < /p>
plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}

def keystoreProperties = new Properties()
def keystorePropertiesFile = rootProject.file('key.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

android {
//compileSdkVersion flutter.compileSdkVersion
//namespace "com.example.abc"
compileSdkVersion 35
ndkVersion flutter.ndkVersion

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = '1.8'
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.phl.abc"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion 21
targetSdkVersion 35
versionCode 5
versionName "5"
}

signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}

}

flutter {
source '../..'
}
android/build.gradle имеет:

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

allprojects {
repositories {
google()
mavenCentral()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
Я не могу выбрать версию gradle jvm здесь:

ПОЛНОСТЬЮ, как исправить ошибку.>

Подробнее здесь: https://stackoverflow.com/questions/796 ... ugins-incl
Ответить

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

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

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

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

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