Android Lint how to

I’m trying to configure a Lint workflow. Regarding following step, how do I do this?

  1. You can set any gradle argument to the gradle task in the Additional Gradle Arguments input.

For example I need to define abortOnError false, should I be able to just write this in Bitrise’s workflow editor section Additional Gradle Arguments? Because it then states no task found called abortOnError

Hi @davidbauer :wave:

That option should be configured in your gradle config file (build.gradle or build.gradle.kts). You can see an example here in the official docs: Improve your code with lint checks  |  Android Studio  |  Android Developers

The Additional Gradle Arguments input’s value will be used when gradle or gradlew, the command line tool is called. The things you specify in this input will be appended to the gradle command; as an example if the step would run ./gradlew lint and you specify --continue then the step will run ./gradlew lint --continue.

Depending on what you want to do with abortOnError false this --continue gradle flag might work. From the gradle command line help docs:

--continue                         Continue task execution after a task failure.
1 Like