As a result, Android Studio includes a feature called Build Variants, which can be thought of as a cartesian product of all of your build types and product flavors.īy default, when you start a new project, Android Studio will create two build types for it: “debug” and “release.” To add new build types, however, you must add them to your module-level adle file and inside the buildTypes block. When developing an Android application, we generate several build types such as “debug” and “release.” At the same time, we may develop different product flavors for the same app, such as a free product flavor for free users and a premium product flavor for paying users. You can find the tool window in the bottom-left corner of the editor, or open it from. We may need to build multiple versions of an APK file dependent on the kind of application (free or paid), and so on. This is a screenshot of the Build Variants tool window in Android Studio. But the question is, how are you going to generate all of these different versions of your app? Weekly sprints result in an Android APK file. For example, you may require one debug APK without proguard and one debug APK with proguard, or you may require one APK for free users and one APK for paying users, or you may require one APK for Android version 6 and above and one APK for Android version below 6, among many other options.
0 Comments
Leave a Reply. |