gradlew.bat assembleDebug -a -b path/to/module/build.gradle
-a only creates a component and does not restore its dependencies
Use -b to specify a different Gradle build file. In this case, the module instead of the top level build.gradle.
If you did not use the Gradle shell, you could just simply cd into the module directory and run gradle assembleDebug -a .
source share