当前位置: 首页 > 知识库问答 >
问题:

颤振错误:无法确定任务的依赖项:应用程序:compileDebugKotlin

施飞鸿
2023-03-14

当我在android studio中运行我的第一个flutter应用程序时,我收到了这个错误。我的模拟器互联网连接和飞行模式是关闭的。我看到了其他类似的问题,但没有一个像这个错误,他们没有帮助我。有人能帮我吗?

Launching lib\main.dart on sdk gphone x86 in debug mode...
Running Gradle task 'assembleDebug'...
Could not resolve compiler classpath. Check if Kotlin Gradle plugin repository is configured in project ':app'.

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:compileDebugKotlin'.
> Could not resolve all files for configuration ':app:kotlinCompilerClasspath'.
   > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-common:1.3.50.
     Required by:
         project :app > org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.50 > org.jetbrains.kotlin:kotlin-stdlib:1.3.50
      > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-common:1.3.50.
         > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.50/kotlin-stdlib-common-1.3.50.pom'.
            > Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.50/kotlin-stdlib-common-1.3.50.pom'. Received status code 403 from server: Forbidden
      > Could not resolve org.jetbrains.kotlin:kotlin-stdlib-common:1.3.50.
         > Could not get resource 'https://storage.googleapis.com/download.flutter.io/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.50/kotlin-stdlib-common-1.3.50.pom'.
            > Could not GET 'https://storage.googleapis.com/download.flutter.io/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.50/kotlin-stdlib-common-1.3.50.pom'. Received status code 403 from server: Forbidden
...

如果需要更多细节,请告诉我。谢谢。

共有1个答案

蒋波光
2023-03-14

这在我身上发生过几次

你有没有尝试建立渐变

  1. cdAndroid
  2. ●●●●/渐变式建筑

它将更详细地显示错误

 类似资料: