Android 新建Kotlin项目报Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib-jre7:1.3.21错误

1、新建kotlin项目是报了Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib-jre7:1.3.21

4952157-099ae16665495a78.png
图(1)

这是因为高版本的kotlin插件module下的gradle.build内的引用需要将下面引用

4952157-129dc550825b0b78.png
图(2)

修改后如图(3)  

4952157-e909b5ee6b138f52.png
图(3)

这样就可以啦

转载于:https://www.jianshu.com/p/097cd23f58fb

猜你喜欢

转载自blog.csdn.net/weixin_34311757/article/details/91172902