По какой-то причине мой build.gradle не похож на другие решения, которые я нашел в Интернете, поэтому я не уверен, правильно ли я его отредактировал. Я только что добавил сегмент buildscript в начало файла; однако я все еще получаю ту же ошибку.
Ошибка:
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
FAILURE: Build failed with an exception.
* What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':pdf_merger' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.31
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 13s
Error: Gradle task assembleDebug failed with exit code 1
Exited (1).
По какой-то причине мой build.gradle не похож на другие решения, которые я нашел в Интернете, поэтому я не уверен, правильно ли я его отредактировал. Я только что добавил сегмент buildscript в начало файла; однако я все еще получаю ту же ошибку. Ошибка: [code]Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
FAILURE: Build failed with an exception.
* What went wrong: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. The following dependencies do not satisfy the required version: project ':pdf_merger' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.31
* Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org.
BUILD FAILED in 13s Error: Gradle task assembleDebug failed with exit code 1
defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example.diagnosis" // 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 flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName }
buildTypes { release { // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. signingConfig signingConfigs.debug } } }
flutter { source '../..' } [/code] "Похоже, что ваше сообщение состоит в основном из кода; добавьте больше деталей."