Android Studio Gradle Build Flavors

前端 未结 3 1141
天命终不由人
天命终不由人 2021-01-19 08:31

I am having troubles understanding Build Flavors in Android Studio. I am trying to achieve a simple thing: buidling 2 signed APK\'s with a minor code change. The \"pro\" APK

3条回答
  •  一生所求
    2021-01-19 09:07

    What you're doing wrong is that you are putting your file in /src/main/res_pro/layout/drawer.xml and not setting it in the gradle. the default location for the flavor that you created would be:

    /src/pro/res/layout/drawer.xml
    

提交回复
热议问题