Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to

后端 未结 18 975
再見小時候
再見小時候 2020-11-28 04:01

today I just imported a sample app from Android SDK as a module in my project (analytics) and suddenly I got this gradle error when I try to sync it: Plugin is too old

18条回答
  •  醉酒成梦
    2020-11-28 04:44

    Solution (Updated: 24-may-2016): Change build.gradle (project)

    buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:X.X.X-lastVersionGradle'
        classpath 'com.google.gms:google-services:X.X.X-lastVersionGServices' // If use google-services
    
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
    

    X.X.X-lastVersionGradle: For example: 2.1.0

    X.X.X-lastVersionGServices: For example: 3.0.0 (support Firebase Analytics)

    Note: if you're using the google-services plugin has to be the same version (if there)

    Warning!! -> 2.2.0-alpha throws Unsupported major.minor version 52.0 if you don't use java JDK 8u91 and NetBeans 8.1

提交回复
热议问题