2016-06-27 9 views
0
Error:(1, 0) Plugin is too old, please update to a more recent version, 
    or set ANDROID_DAILY_OVERRIDE environment variable to 
"f4a0bcdad02706f1af97b485d6a6a0c5e7d9a560". Fix plugin version and sync project 

のAndroid Gradleではエラーがbuild.gradle

apply plugin: 'com.android.application' 

android { 


    compileSdkVersion 21 
    buildToolsVersion "21.1.2" 
    defaultConfig { 
     applicationId "com.app.xxxxxx" 
     minSdkVersion 15 
     targetSdkVersion 21 
     versionCode 2 
     versionName "2.0" 
    } 
    packagingOptions { 
     exclude 'META-INF/LICENSE.txt' 
     exclude 'META-INF/NOTICE.txt' 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
     debug { 
      signingConfig signingConfigs.config 
      debuggable true 
      jniDebuggable false 
      minifyEnabled false 
     } 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    compile 'com.android.support:appcompat-v7:21.0.0' 
    compile 'com.android.support:recyclerview-v7:21.0.+' 
} 

答えて

1

更新

apply plugin: 'com.android.application' 

android { 


compileSdkVersion 23 
buildToolsVersion "23.0.3" 
defaultConfig { 
    applicationId "com.app.xxxxxx" 
    minSdkVersion 15 
    targetSdkVersion 23 
    versionCode 2 
    versionName "2.0" 
} 
packagingOptions { 
    exclude 'META-INF/LICENSE.txt' 
    exclude 'META-INF/NOTICE.txt' 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
    debug { 
     signingConfig signingConfigs.config 
     debuggable true 
     jniDebuggable false 
     minifyEnabled false 
    } 
} 
} 

dependencies { 
compile fileTree(dir: 'libs', include: ['*.jar']) 
compile 'com.android.support:appcompat-v7:23.4.0' 
compile 'com.android.support:recyclerview-v7:23.4.0' 
} 

0123あなたのGradleを発生しますまた

あなたのGradleのバージョン

//You Used Above Version Also 

classpath 'com.android.tools.build:gradle:2.1.0' 
+0

が、私のクラスパスには、それはうれしいです –

+0

'com.android.tools.build:gradle:2.2.0-alpha1' クラスパス..ですあなたにだけAPPCOMPATとrecyclerviewを更新することができます答えは –

0

そのごgradleプラグインが古すぎるので、最新のバージョンにアップデートする必要があります。

ダウンロードhere

から最新GradleあなたはSDKマネージャを実行する必要はありますし、更新リビジョンをチェック。プロジェクトレベルbuild.gradle

置き換えます

classpath 'com.android.tools.build:gradle:1.1.0' 

をして:

classpath 'com.android.tools.build:gradle:2.1.2' 

、あなたが上に掲載されているアプリレベルbuild.gradle中:

置き換えます

compile 'com.android.support:appcompat-v7:21.0.0' 
compile 'com.android.support:recyclerview-v7:21.0.+' 

compile 'com.android.support:appcompat-v7:23.4.0' 
compile 'com.android.support:recyclerview-v7:23.4.0' 
+0

です。私のクラスパスはclasspathです。com.android.tools.build:gradle:2.2.0-alpha1 ' –

+0

私の解決策を試しましたか?私はそれがあなたの問題を解決することを与えたものにそれを更新してください。 – Max

関連する問題