New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed - libraries:facebook:lint #58

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

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

This comment has been minimized.

Show comment
Hide comment
@akotulski

akotulski Jun 15, 2015

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.

Contributor

akotulski commented Jun 15, 2015

@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

This comment has been minimized.

Show comment
Hide comment
@irpap

irpap Jun 15, 2015

Contributor

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

Contributor

irpap commented Jun 15, 2015

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

@icaspi

This comment has been minimized.

Show comment
Hide comment
@icaspi

icaspi Jun 15, 2015

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

icaspi commented Jun 15, 2015

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

@irpap

This comment has been minimized.

Show comment
Hide comment
@irpap

irpap Jun 18, 2015

Contributor

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

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

This comment has been minimized.

Show comment
Hide comment
@icaspi

icaspi Jun 19, 2015

That sorted out the issue, thanks!

icaspi commented Jun 19, 2015

That sorted out the issue, thanks!

@jvillard

This comment has been minimized.

Show comment
Hide comment
@jvillard

jvillard Apr 20, 2016

Contributor

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

Contributor

jvillard commented Apr 20, 2016

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