Я использую Android Studio, разрабатывающую проект Flutter. Все работает нормально на моем рабочем столе, но когда я пытаюсь запустить его на моем устройстве Android, оно пробивается с: < /p>
Build file '/code/android/build.gradle' line: 10
* What went wrong:
A problem occurred evaluating root project 'android'.
> Could not find method implementation() for arguments [org.jetbrains:annotations:15.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
* 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 8s
Error: Gradle task assembleDebug failed with exit code 1
< /code>
Мой файл сборки: < /p>
allprojects {
repositories {
google()
mavenCentral()
}
}
rootProject.buildDir = '../build'
dependencies {
implementation 'org.jetbrains:annotations:15.0'
}
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
Я использую Android Studio, разрабатывающую проект Flutter. Все работает нормально на моем рабочем столе, но когда я пытаюсь запустить его на моем устройстве Android, оно пробивается с: < /p> [code]Build file '/code/android/build.gradle' line: 10
* What went wrong: A problem occurred evaluating root project 'android'. > Could not find method implementation() for arguments [org.jetbrains:annotations:15.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
* 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.