Build failed - libraries:facebook:lint #58

Closed
icaspi opened this Issue Jun 15, 2015 · 6 comments

Projects

None yet

4 participants

@icaspi
icaspi commented Jun 15, 2015

I'm trying to execute "infer -- gradle build" on an Android project, at first it complained about LeakCanary (https://github.com/square/leakcanary) I suspect its something with its lint release configuration, after removing LeakCanary it complains about this -

22:41:36.360 [ERROR] [org.gradle.BuildExceptionReporter]
22:41:36.360 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
22:41:36.361 [ERROR] [org.gradle.BuildExceptionReporter]
22:41:36.361 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
22:41:36.361 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':libraries:facebook:lint'.
22:41:36.361 [ERROR] [org.gradle.BuildExceptionReporter] > Lint found errors in the project; aborting build.
22:41:36.361 [ERROR] [org.gradle.BuildExceptionReporter]

22:41:36.361 [ERROR] [org.gradle.BuildExceptionReporter] Fix the issues identified by lint, or add the following to your build script to proceed with errors:
22:41:36.362 [ERROR] [org.gradle.BuildExceptionReporter] ...
22:41:36.362 [ERROR] [org.gradle.BuildExceptionReporter] android {
22:41:36.362 [ERROR] [org.gradle.BuildExceptionReporter] lintOptions {
22:41:36.362 [ERROR] [org.gradle.BuildExceptionReporter] abortOnError false
22:41:36.362 [ERROR] [org.gradle.BuildExceptionReporter] }
22:41:36.362 [ERROR] [org.gradle.BuildExceptionReporter] }
22:41:36.362 [ERROR] [org.gradle.BuildExceptionReporter] ...
22:41:36.362 [ERROR] [org.gradle.BuildExceptionReporter]
22:41:36.363 [ERROR] [org.gradle.BuildExceptionReporter] * Try:
22:41:36.363 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.

My release config (gradle clean assembleGoogleRelease) is building fine...

Any ideas?

@akotulski
Contributor

@icaspi could you run to tell us which version of javac you have?
javac -version

If you could tell us how we could repro this it would help us a lot in troubleshooting.

@irpap irpap added the java label Jun 15, 2015
@irpap
Contributor
irpap commented Jun 15, 2015

Thanks @icaspi for reporting this. It seems related to this #18. I'll take a look.

@icaspi
icaspi commented Jun 15, 2015

@akotulski - javac 1.7.0_79
@irpap - thank you very much let me know if I can help

@irpap
Contributor
irpap commented Jun 18, 2015

A temporary workaround would be to run " gradle build -x lint" instead to bypass the lint, but we're working on a proper fix.

@icaspi
icaspi commented Jun 19, 2015

That sorted out the issue, thanks!

@jvillard
Contributor

gradle build -x lint sounds like a proper fix to me.

@jvillard jvillard closed this Apr 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment