首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >找不到org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.5 0

找不到org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.5 0
EN

Stack Overflow用户
提问于 2021-05-18 16:30:12
回答 1查看 120关注 0票数 0

您好,我正要将我的应用程序部署为APK。当我对我的手机进行调试时,一切都正常。我已经准备好把它构建成APK了。结果发生了这样的事情。这个错误一直出现,我不知道该怎么办。

代码语言:javascript
复制
Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.5  0.
Searched in the following locations:
  - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.5  0/kotlin-gradle-plugin-1.3.5  0.pom
  - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.5  0/kotlin-gradle-plugin-1.3.5  0.jar
  - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.5  0/kotlin-gradle-plugin-1.3.5  0.pom
  - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.5  0/kotlin-gradle-plugin-1.3.5  0.jar
Required by:
    project :

我也试着在我的手机上运行它,结果发生了这种情况

代码语言:javascript
复制
Launching lib\main.dart on CPH1803 in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find com.android.tools.build:gradle:3.5.1.
     Searched in the following locations:
       - http://jcenter.bintray.com/com/android/tools/build/gradle/3.5.1/gradle-3.5.1.pom
       - http://jcenter.bintray.com/com/android/tools/build/gradle/3.5.1/gradle-3.5.1.jar
     Required by:
         project :
   > Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.5  0.
     Searched in the following locations:
       - http://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.5  0/kotlin-gradle-plugin-1.3.5  0.pom
       - http://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.5  0/kotlin-gradle-plugin-1.3.5  0.jar
     Required by:
         project :

* 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 46s
Exception: Gradle task assembleDebug failed with exit code 1

我尝试了几种方法,但都不起作用。该怎么办呢。

另外,请让它更容易解释,因为我不知道在这个问题中。如果可能的话,请让我这样的笨蛋一步一步来,谢谢。我真的需要你的帮助。求求你!谢谢

Update>这是app\build.gradle中的新错误

代码语言:javascript
复制
Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.5  0.
Searched in the following locations:
  - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.5  0/kotlin-gradle-plugin-1.3.5  0.pom
  - https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-gradle-plugin/1.3.5  0/kotlin-gradle-plugin-1.3.5  0.pom
Required by:
    project :
EN

回答 1

Stack Overflow用户

发布于 2021-05-18 16:35:49

看起来像是you are not connected to internet。Flutter无法下载所需的依赖项。请连接到互联网为您的第一次构建使用新的库,并运行flutter pub get,然后再次运行flutter run

如果它起作用了,请告诉我。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67582602

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档