小编Deg*_*mar的帖子

Gradle 同步失败:无法初始化类 org.jetbrains.kotlin.gradle.internal.KotlinSourceSetProviderImplKt

21:10   Gradle sync failed: Could not initialize class org.jetbrains.kotlin.gradle.internal.KotlinSourceSetProviderImplKt
            Consult IDE log for more details (Help | Show Log) (7s 78ms)
Run Code Online (Sandbox Code Playgroud)

嗨,伙计们,我试图使缓存无效并重新启动,将项目与 gradle 和文件系统同步,更新最新的稳定 kotlin,创建新项目并让 android studio 下载所有更新,但仍然遇到同样的错误。谁能帮我 ?对不起,我真的是安卓的新手

这是我的= app/build.gradle

apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

android {
    compileSdkVersion 29
    defaultConfig {
        applicationId "com.asusx.rogmode.rog"
        minSdkVersion 27
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation"org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
    implementation …
Run Code Online (Sandbox Code Playgroud)

android gradle kotlin android-studio

0
推荐指数
1
解决办法
3308
查看次数

标签 统计

android ×1

android-studio ×1

gradle ×1

kotlin ×1