How should I set Lint Option and VersionCode/Name globally for all modules I have 3 module and 1 application module for every module/build.gradle file I need to set as
lintOptions {
checkReleaseBuilds false
abortOnError false
}
But I want to set this in project level e.g in /build.gradle I have try to paste above code in upper level gradle file but not work
allprojects {
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}
Is there any way to set this globally ?
Create a new Gradle script file, e.g. android-lint.gradle
with the following contents:
android {
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}
And then add this line below apply plugin: 'com.android.library'
(or com.android.application
) to every module:
apply from: '../android-lint.gradle'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With