I have some library project that has its own tests. I\'m not responsible for this library project and don\'t care about its tests, however, when I run gradle :app:conn
If you have a project dependency to this library, gradle wants to build and test it, since both is the usual build process of a java project. To avoid these test you can do one of this:
./gradlew connectedAndroidTest -x :mylib:connectedAndroidTest