I\'ve read a lot about the StopShip
Android Lint Check and Gradle support for it
I finally cracked it! fatal 'StopShip'
. That's what finally did it! Leaving my discovery in case it helps anyone.
Replacing error 'StopShip'
with fatal 'StopShip'
in my build.gradle
config solved the problem.
I don't fully understand why my previous attempts with error 'StopShip'
didn't work, as the abortOnError docs clearly state:
Whether lint should set the exit code of the process if errors are found
and I was marking the StopShip
check severity as error. It looks like abortOnError
will only make the Gradle build abort for FATAL errors. Can anyone confirm?
Of course, if it anyone offers a better solution/explanation, please do share.