Android Studio 2.0-此版本的Android Studio与使用的Gradle插件不兼容。尝试禁用即时运行
我更新了Android Studio版本2.0 preview 6,并且正常使用了很长时间。但是当我今天创建一个新项目时,它显示错误插件太旧,请更新到更新的版本,或者将Android_DAILY_OVERRIDE环境变量设置为 我查了一下,找到了如下链接中的解决方案: 更改了我的build.gradle(项目)类路径和gradle-wrapper.properties,但现在项目已正确生成但未运行, 显示的错误是“此版本的Android Studio与使用的Gradle插件不兼容。请尝试禁用即时运行。” 找不到相同的解决方案。我是一个初学者,任何帮助都将不胜感激 我的应用程序/build.gradleAndroid Studio 2.0-此版本的Android Studio与使用的Gradle插件不兼容。尝试禁用即时运行,android,gradle,android-studio-2.0,Android,Gradle,Android Studio 2.0,我更新了Android Studio版本2.0 preview 6,并且正常使用了很长时间。但是当我今天创建一个新项目时,它显示错误插件太旧,请更新到更新的版本,或者将Android_DAILY_OVERRIDE环境变量设置为 我查了一下,找到了如下链接中的解决方案: 更改了我的build.gradle(项目)类路径和gradle-wrapper.properties,但现在项目已正确生成但未运行, 显示的错误是“此版本的Android Studio与使用的Gradle插件不兼容。请尝试禁用即时
apply plugin: 'com.android.application'
android {
compileSdkVersion 'Google Inc.:Google APIs:23'
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.timercheck"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.+'
compile 'com.android.support:design:23.+'
}
My build.gradle(项目)
即时运行
并清除启用即时运行
以热插拔代码打开设置并检查您使用的gradle版本。。注意你需要使用最新的一个作为android studio,请检查这里所有可用的插件…工作正常。谢谢
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0-beta6'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}