В ходе некоторых исследований я обнаружил, что закрытие jCenter могло вызвать проблему. Чтобы все заработало, я обновил build.grdle с помощью приведенного ниже кода
Код: Выделить всё
buildscript {
ext.kotlin_version = '1.6.0'
repositories {
google()
mavenCentral()
maven { url 'https://developer.huawei.com/repo/' }
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath "com.newrelic.agent.android:agent-gradle-plugin:6.10.0"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.4'
classpath 'com.huawei.agconnect:agcp:1.4.1.300'
}
}
allprojects {
repositories {
google()
maven { url 'https://developer.huawei.com/repo/' }
maven {
url "https://jitpack.io"
}
maven { url = uri("https://maven.scijava.org/content/repositories/public/") }
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Код: Выделить всё
The plugin
Код: Выделить всё
uses a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs. If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration. Launching lib\main.dart on XXXXXX in debug mode... Running Gradle task 'assembleDebug'... get manifestOutputDirectory error √ Built build\app\outputs\flutter-apk\app-debug.apk. D/FlutterLocationService( 7265): Creating service. D/FlutterLocationService( 7265): Binding to location service.
Я пытаюсь выяснить, что я делаю неправильно при создании отладочной или выпускной сборки для моего приложения Flutter, которое работало нормально до 25 сентября 2024 года. p>
Спасибо
Подробнее здесь: https://stackoverflow.com/questions/790 ... lutter-app