Android Studio - Gradle always builds all modules, not just the one I run

I am creating an android library in Android Studio.

To test it, I added a second module, which is a test application for the library.

When I create a library to release a new version, it always launches a test application. If I have errors only in the test application, I can’t even create a library at all!

Why doesn't he only create the one I called?

enter image description here

+4
source share
1 answer

I ran into the same problem. While I do not know why this is happening. Fortunately, there is a workaround:

" " node "Gradle projects" , . " ". ":" , . . "",

Tasks: | build

Tasks: | :your.module.name:build

.

0

All Articles