错误:Kotlin:Unsupported插件选项:org.jetbrains.Kotlin.android:enabled=true";“重新加载”;
下面的问题让我发疯 每当我从Android Studio中启动Kotlin REPL时,我都会收到以下消息:错误:Kotlin:Unsupported插件选项:org.jetbrains.Kotlin.android:enabled=true";“重新加载”;,android,kotlin,Android,Kotlin,下面的问题让我发疯 每当我从Android Studio中启动Kotlin REPL时,我都会收到以下消息: You’re running the REPL with outdated classes: Build module 'app' and restart Welcome to Kotlin version 1.2.71 (JRE 1.8.0_152-release-1136-b06) Type :help for help, :quit for quit 通过单击链接重建模块“
You’re running the REPL with outdated classes: Build module 'app' and restart
Welcome to Kotlin version 1.2.71 (JRE 1.8.0_152-release-1136-b06) Type :help for help, :quit for quit
通过单击链接重建模块“应用程序”,结果为:
There were compilation errors in module app
and Error: Kotlin: Unsupported plugin option: org.jetbrains.kotlin.android:enabled=true
我刚刚在Ubuntu18.04 LTS上干净地安装了Android Studio 3.2:
Android Studio 3.2版本#AI-181.5540.7.32.5014246,基于
2018年9月17日JRE:1.8.0_152-release-1136-b06 amd64 JVM:
JetBrains s.r.o Linux 4.15.0-36-generic提供的OpenJDK 64位服务器虚拟机
我还升级到了最新的Kotlin插件
当前Kotlin插件版本:1.2.71-release-Studio3.2-1
我尝试了所有的提示,这些提示都被贴在了类似的问题上,但没有任何帮助
我的模块build.gradle包含:
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.gisc0.myapplication"
minSdkVersion 15
targetSdkVersion 28
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-jdk7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
你能分享你的
.gradle
文件吗?我在上面添加了模块级build.gradle的内容。它发生在一个纯生成的“新项目”上。未进行任何修改。可能重复的