【发布时间】:2016-08-03 15:28:39
【问题描述】:
我目前在 Android Studio 2.1 中打开此文件,该应用是在 Android Studio 1.5 版中创建的。
Error:(1, 0) Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to "abf87974ef3c08e3258fe37c7d5001161385f549"
Fix plugin version and sync project
Open File
我在导入 Android 项目时遇到问题,它显示错误。
按“修复插件”后,它显示“更新失败”。
这是我的build.gradle 文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "app.asharbhutta.com.challanlogin"
minSdkVersion 13
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'
classpath 'com.android.tools.build:gradle:2.1.4'
}
这是 gradle-wrapper.properties
#Wed Oct 21 11:34:03 PDT 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14-bin.zip
【问题讨论】:
-
你的 Gradle 插件太旧了?请显示
build.gradle文件。 -
是的,我知道,请告诉我如何解决它..
-
@cricket_007 现在你可以看到我的 gradle 文件了 ..
-
谢谢!现在,应该有两个...一个在项目的根目录中,另一个在
app/目录中。如果不是这样,那么您是如何生成这个项目的? -
我已经提到我已经导入了这个应用程序..