What Product Flavor does Android Studio build by default in build.gradle?

前端 未结 5 1747
小鲜肉
小鲜肉 2020-12-04 10:50

We have an Android project that uses the new Gradle build system, and we use Android Studio as a development tool. When there are several product flavors specified in

5条回答
  •  再見小時候
    2020-12-04 11:17

    What actually worked for me is enabling "Android Studio Preferences -> Experimental -> Only sync the active variant". After you select the desired build variant once, AS will keep the selected build variant when reopening or when re-syncing the project, basically solving the original problem.

    AS/AGP v4.1.

提交回复
热议问题