[英]how to solve this kotlin plugin problem in android project?
I cloned this udacity project and seems to have an earlier version of kotlin plugin and gradle.我克隆了这个 udacity 项目,似乎有一个早期版本的 kotlin 插件和 gradle。 all good until i add a new fragment so when the gradle sync it shows this error一切都很好,直到我添加一个新片段,所以当 gradle 同步时,它会显示此错误
Caused by: org.gradle.internal.component.AmbiguousConfigurationSelectionException: Cannot choose between the following variants of org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10:原因:org.gradle.internal.component.AmbiguousConfigurationSelectionException:无法在 org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10 的以下变体之间进行选择:
PS: Im new to android development PS:我是 android 开发新手
Did you try downgrade version?你试过降级版本吗?
In your build.gradle(project level), downgrade from 1.7.10 to 1.6.21 Like this:在你的 build.gradle(project level) 中,从 1.7.10 降级到 1.6.21 像这样:
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.