无法使用Android Studio构建Kotlin项目

时间:2018-10-12 06:34:55

标签: android

当我第一次创建kotlin项目时,它失败并在下面显示异常!

enter image description here

2 个答案:

答案 0 :(得分:0)

尝试替换gradle上的google和jcenter订单,例如:

repositories {
        google()
        jcenter()
        mavenCentral()
    }

第一个Google而不是jcenter

答案 1 :(得分:0)

遇到类似问题,必须回到Kotlin 1.2.61! 然后它再次工作。试试看

编辑:顺便说一句。在这里提到,但已经有1.2.71的更新可用 https://developer.android.com/studio/releases/?utm_source=android-studio&utm_medium=studio-assistant