Ich habe die Android Studio-Version 2.0 aktualisiert und normal verwendet. Wenn ich heute ein neues Projekt erstellt habe, wird der Fehler angezeigt. Das Plugin ist zu alt. Aktualisieren Sie auf eine neuere Version oder setzen Sie die Umgebungsvariable ANDROID_DAILY_OVERRIDE auf
Ich habe festgestellt, dass dieses Problem nur auftritt, wenn ich ein neues Projekt erstelle. In früheren Projekten, die entwickelt wurden, tritt das Problem nicht auf und ich erkannte, dass Gradle anders ist
classpath 'com.android.tools.build:gradle:1.3.0'
.
Ich muss mit den gleichen alten Projekten aktualisieren?
Meine App / build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "luizugliano.com.br.teste"
minSdkVersion 16
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.1.1'
compile 'com.android.support:design:23.1.1'
}
Mein build.gradle (Projekt)
// 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-alpha1'
// 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
}