How to debug product taste in android studio?

I have two products, free and professional.

Startup activity for both different.

But Android studio expects launch activity to be in AndroidManifest.xml under src / main /.

Gradle builds both flyers correctly, but the IDE cannot select the correct AndroidManifest.xml from the appropriate taste of the product, such as src / free or src / pro.

This happens even after choosing the right build option like FreeDebug or ProDebug.

+7
android android-studio gradle
source share
2 answers

This post has the answer you want. [ What is the taste of the product that makes Android Studio default in build.gradle?

You can click in the lower left corner and open the "Assembly Options" window. Then select the flavor (option) that you want to work with.

+14
source share

I worked on this by manually modifying the launch configuration (Run-> Edit Configurations ... In the Activity - Launch section), although this is definitely not the best solution.

+3
source share

All Articles