Я хочу запустить свое приложение hello world на устройстве, но когда я запускаю это приложение, я улавливаю ошибки при синхронизации.
Я не знаю, как это исправить. Я выполнил каждую работу по запуску приложения, например загрузку SDK или PATH в системные переменные, но на последнем шаге это не сработало, мой flutter SDK является последней его версией.
Это мой flutter-tools / flutter.gradle файл (по умолчанию)
.
.
.
.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
}
}
android {
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
}
.
.
.
и это журнал
* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> Could not resolve all artifacts for configuration ':app:debugCompileClasspath'.
> Could not find fragment.jar (androidx.fragment:fragment:1.0.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/fragment/fragment/1.0.0/fragment-1.0.0.jar
> Could not find lifecycle-runtime.jar (androidx.lifecycle:lifecycle-runtime:2.0.0).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-runtime/2.0.0/lifecycle-runtime-2.0.0.jar
* 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 50s
Finished with error: Gradle task assembleDebug failed with exit code 1