Building your app from the command line, if you have a "demo" product flavor, then you can build the debug version with the command:
A . gradlew assembleDemoDebug
B . gradlew installDemoDebug
C . both variants are correct.
Answer: C
Explanation:
Before immediately install build on a running emulator or connected device, installDemoDebug cause an APK building.
Reference: https://developer.android.com/studio/run