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

查看:2832
本文介绍了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

官方文档此处感谢您提供的链接@ ROMANARMY

Official Documentation here Thanks for the link @ ROMANARMY

快乐编码:)

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

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