Android构建因React Native而失败

时间:2019-02-12 22:06:20

标签: android react-native

使用以下命令创建android构建时 ./gradlew assembleRelease

它失败并出现以下错误:

FAILURE: Build failed with an exception.
* What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher.
The following dependencies do not satisfy the required version:
project ':awesome-project' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71

如果我尝试清理android build ./gradlew assembleRelease

,则出现同样的问题

1 个答案:

答案 0 :(得分:0)

您可以在项目级别的build.gradle文件中更新Kotlin版本。如果按常规方式配置了它,则顶部应该有以下一行:

ext.kotlin_version = '1.1.2'

要升级到与您的插件匹配的版本,只需将此行更改为:

ext.kotlin_version = '1.1.2-3'
相关问题