android 报错:Cannot choose between the following variants of project

  • 这个很大一部分是插件引用造成的,我这边是通过把插件的版本升级就解决了
buildscript {
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.4.0'
//        classpath "io.realm:realm-gradle-plugin:2.1.1" //添加realm插件
        classpath "io.realm:realm-gradle-plugin:4.3.1" //添加realm插件
    }
}

你可能感兴趣的:(android 报错:Cannot choose between the following variants of project)