我在Android Studio中遇到構建應用程序的問題。我使用的Android Studio 2.2中預覽7.當我開始了我的Android工作室它給出了一個錯誤:Android Studio Build.Gradle Sync錯誤
The plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to xxxxxxx.
它要求我修理插件版本,並同步項目。我做了所有必需的更新,但錯誤依然存在。我已經閱讀過有關這個問題的類似問題,但似乎並不適用於我的案例。
您能否協助我提供一個可行的解決方案?
這裏是我的build.gradle文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.mobileappdev.novarttech.sunshine"
minSdkVersion 10
targetSdkVersion 23
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha4'
compile 'com.android.support:design:23.3.0'
testCompile 'junit:junit:4.12'
}
我相信這個其他問題可能會有所幫助:http://stackoverflow.com/questions/34572458/android-studio-2-0-plugin-is-too-old - 請更新到A-更近的版本。您需要更新gradle工具 –