解决AS升级3.4 ERROR: All flavors must now belong to a named flavor dimension.Learn more at https://d.and
生活随笔
收集整理的這篇文章主要介紹了
解决AS升级3.4 ERROR: All flavors must now belong to a named flavor dimension.Learn more at https://d.and
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
AS升級(jí)到3.4.2之后在多渠道環(huán)境下編譯出錯(cuò),錯(cuò)誤提示為:"ERROR: All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com/r/tools/flavorDimensions-missing-error-message.html,Affected Modules: ModuleName".
錯(cuò)誤:要求所有的flavors要在同一個(gè)維度。
?
解決辦法:在build.gradle文件defaultConfig下添加:
compileSdkVersion 22buildToolsVersion '28.0.3'defaultConfig {applicationId "com.kyunglip"minSdkVersion 17targetSdkVersion 19testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"multiDexEnabled true//buildConfigField 默認(rèn)值,特殊渠道屬性可以重寫buildConfigField "Boolean ", "SPEECH_ENABLED", "true"ndk {abiFilters 'armeabi-v7a'}//添加此行flavorDimensions "default"} 其中,“default"值可以是任意,但一般都是default。添加完之后重新syn。總結(jié)
以上是生活随笔為你收集整理的解决AS升级3.4 ERROR: All flavors must now belong to a named flavor dimension.Learn more at https://d.and的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 金蝶k3服务器维护,金蝶k3问题处理-完
- 下一篇: w ndows 那个比较好用,DOS工具