Android Studio 3.0 Flavor Dimension Issue

后端 未结 7 1639
我寻月下人不归
我寻月下人不归 2020-12-04 05:49

Upgraded to Studio Canary build. My previous project of Telegram Messenger is giving following error.

Error:All flavors must now belong to a named fla

7条回答
  •  离开以前
    2020-12-04 06:45

    After trying and reading carefully, I solved it myself. Solution is to add the following line in build.gradle.

    flavorDimensions "versionCode"

    android { 
           compileSdkVersion 24
           .....
           flavorDimensions "versionCode"
    } 
    

提交回复
热议问题