解決Error:All flavors must now belong to a named flavor dimension. Learn more at...


轉載請標明出處: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"
    }

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM