我在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工具 –