Kotlin 错误:找不到 org.jetbrains.kotlin:kotlin-stdlib-jre7:1.0.7 [英] Kotlin Error : Could not find org.jetbrains.kotlin:kotlin-stdlib-jre7:1.0.7

查看:62
本文介绍了Kotlin 错误:找不到 org.jetbrains.kotlin:kotlin-stdlib-jre7:1.0.7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将 Kotlin 插件安装到我的应用程序中(v1.1.1-release-Studio2.2-1),然后选择了在项目中配置 Kotlin".我选择了 1.0.7 的编译器和运行时版本.Kotlin 更新了我的 Gradle 文件.现在,当我尝试构建时,我得到:

I installed the Kotlin plugin into my app (v. v1.1.1-release-Studio2.2-1) and then selected "Configure Kotlin in Project" I selected compiler and runtime version of 1.0.7. Kotlin updated my Gradle files. Now when I try to build in I get:

错误:配置项目:app"时出现问题.无法解析配置:app:_debugApkCopy"的所有依赖项.找不到 org.jetbrains.kotlin:kotlin-stdlib-jre7:1.0.7.要求:

Error: A problem occurred configuring project ':app'. Could not resolve all dependencies for configuration ':app:_debugApkCopy'. Could not find org.jetbrains.kotlin:kotlin-stdlib-jre7:1.0.7. Required by:

MyApplication:app:unspecified

MyApplication:app:unspecified

我不确定我在这里遗漏了什么.

I'm not sure what I'm missing here.

推荐答案

替换

implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

因为jre的版本是绝对的,只需要替换同步项目

Since the version with jre is absolute , just replace and sync the project

官方文档这里 感谢您的链接@罗马尼亚

Official Documentation here Thanks for the link @ ROMANARMY

这篇关于Kotlin 错误:找不到 org.jetbrains.kotlin:kotlin-stdlib-jre7:1.0.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆