Android Studio Gradle Build Flavors

前端 未结 3 1142
天命终不由人
天命终不由人 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:11

    With this build script you are using build types AND flavors. For changing the xml file you only need the flavors. Try to delete buildTypes and use the productFlavor block as child of android. The changing of the res folder of the pro flavor should go into the sourceSets Block right after all the changes of the main sourceSet

提交回复
热议问题