The build can be completed by adding the following to build.gradle
android {
lintOptions {
abortOnError false
}
}
Tried the solution by Scott Barta and Jared Burrows at How to fix error running ./gradlew check connectedCheck, after update AndroidStudio to 0.4.0? and it worked.