转载请标明出处:https://www.cnblogs.com/tangZH/p/10764638.html

更多精彩文章:http://77blogs.com/?p=297

 

低版本的gradle里面不会出现这个错误,高版本出现,不多说,看如何解决

在defaultConfig{}中添加:

flavorDimensions "default"

保证所有的flavor 都属于同一个维度

 defaultConfig {
        applicationId "com.status.channel"
        minSdkVersion 15
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        flavorDimensions "default"
    }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2021-08-22
  • 2021-12-14
  • 2021-12-14
  • 2021-07-15
猜你喜欢
  • 2021-09-14
  • 2021-05-30
  • 2021-04-26
  • 2021-09-06
  • 2021-12-24
  • 2021-10-25
相关资源
相似解决方案