Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio build all flavors

I have a project that will have many flavors. What do to or how can i build all flavors variants at once? Or at least one by one .... me just hit one time "run"

productFlavors

        {
            Svone
                    {
                        applicationId "xx.xxx.xxxx.svone"
                        resValue "string", "app_name", "Svone"

                    }

            Svtwo
                    {
                        applicationId "xx.xxx.xxxx.svtwo"
                        resValue "string", "app_name", "Svtwo"

                    }
        }

in my gradle file i have signingConfigs and all my flavors should use the same *.jks

Thanks

like image 276
Corneliu Avatar asked Jan 21 '26 19:01

Corneliu


1 Answers

Yes

you can use command line

./gradlew build

Or using gradle menu in android studio app -> Tasks -> build -> build

it will generate all apks in app/build/outputs/apk

like image 110
Moaz Rashad Avatar answered Jan 24 '26 10:01

Moaz Rashad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!