[Android Studio] ‘compileBetaDebugJavaWithJavac’ task (current target is 1.8) and ‘kaptGenerateStubsBetaDebugKotlin’ task (current target is 17)

修改 kotlinOptionscompileOptionsjvm 版本,以保持与 Android Studio 默认的 jvm 版本一致(较新版本为17):

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
    }
    kotlinOptions {
        jvmTarget = '17'
    }

发表评论


*