解决Error:All flavors must now belong to a named flavor dimension. Learn more at...
生活随笔
收集整理的這篇文章主要介紹了
解决Error:All flavors must now belong to a named flavor dimension. Learn more at...
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
轉(zhuǎn)載請標(biāo)明出處:https://www.cnblogs.com/tangZH/p/10764638.html
更多精彩文章:http://77blogs.com/?p=297
?
低版本的gradle里面不會出現(xiàn)這個錯誤,高版本出現(xiàn),不多說,看如何解決
在defaultConfig{}中添加:
flavorDimensions "default"
保證所有的flavor 都屬于同一個維度
defaultConfig {applicationId "com.status.channel"minSdkVersion 15targetSdkVersion 28versionCode 1versionName "1.0"testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"flavorDimensions "default"}?
總結(jié)
以上是生活随笔為你收集整理的解决Error:All flavors must now belong to a named flavor dimension. Learn more at...的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: easyboot制作xp、win7、ub
- 下一篇: 天呢,小学生都在B站讲算法?