Open PhilipBrew opened 3 years ago
hello same issue , any solution here?
hello same issue , any solution here?
Hi, no official solution so far. I've ended up forking the module and disabling linting errors by editing /android/build.gradle
and adding in android { lintOptions { abortOnError false } }
Encountered this today as well. There is an Android build trick to disable lintOptions in third party plugins that seems to be working for me. In android/build.gradle
add this to the bottom of your allProjects {...}
block:
afterEvaluate {
if (getPlugins().hasPlugin('android') || getPlugins().hasPlugin('android-library')) {
configure(android.lintOptions) {
abortOnError false
checkReleaseBuilds false
}
}
}
This is not a fix, but allows the build to proceed without having to fork the module and edit it.
@crrobinson14 I just implemented this also and my build is working. Thanks for sharing the trick so I don't need to use my forked module.
Like you say it's not a fix so will keep this issue open but at least I can build the app while using this package :)
Lint check disable is not a solution, the issue should be addressed.
I've updated Gradle build tools and now getting build errors from this package. Errors are:
Gradle: 6.7 Gradle Enterprise plugin: 3.4.1 Android Gradle plugin: 3.5.4
Looks like we need to either turn off linting errors or fix the deprecated issues.
Steps to replicate
buildscript { dependencies: { classpath("com.android.tools.build:gradle:3.5.4") } }
cd android && ./gradlew build
See full build scan here: https://scans.gradle.com/s/dpoqnuxgxniwc