Skip to content Skip to sidebar Skip to footer

How To Make Grade Release Build Fail Using Lint Option Stopship?

I've read a lot about the StopShip Android Lint Check and Gradle support for it http://tools.android.com/tips/lint-checks http://tools.android.com/tech-docs/new-build-system/user-

Solution 1:

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.

Post a Comment for "How To Make Grade Release Build Fail Using Lint Option Stopship?"