小编Oma*_*rys的帖子

任务 ':expo-modules-core:compileDebugKotlin' 执行失败

我需要找到这个错误的解决方案和解释。周四它工作正常并构建正常,第二天我收到此错误。我不明白为什么。

在我没有在 android/build.gradle 中配置 kotlin 版本之前,但对于每个版本,我都会收到不同的错误。请帮忙。

buildscript {
ext {
    buildToolsVersion = '29.0.3'
    minSdkVersion = 21
    compileSdkVersion = 31
    targetSdkVersion = 30
    //kotlin_version = '1.4.20'
}
repositories {
    google()
    mavenCentral()
    jcenter()
    maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
    classpath 'com.google.gms:google-services:4.3.8'
    classpath('com.android.tools.build:gradle:4.1.0')
    //classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.20")
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

android build.gradle react-native

5
推荐指数
1
解决办法
5611
查看次数

标签 统计

android ×1

build.gradle ×1

react-native ×1