Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug specific build variant of Android Gradle project in IntelliJ IDEA?

If I create Android Application debug configuration and will use it, then everything is ok and IntelliJ IDEA by default uses debug build type from build.gradle. But I want to debug specific build variant (flavor and build type). For example, flavor name is Cabby and build type if mock. I create debug configuration like this:

Cabby Mock Gradle debug configuration

Then I start debugging this configuration. Gradle tasks assembleCabbyMock and installCabbyMock are successfully executed and then I see this:

enter image description here

like image 532
mixel Avatar asked Feb 05 '14 13:02

mixel


1 Answers

There is Build Variants tool window under View->Tool Windows where you can choose build variant.

Also there is Build Variants docked view on the lower left side of IntelliJ IDEA window.

like image 88
mixel Avatar answered Oct 12 '22 11:10

mixel