Skip to content

Build failed - libraries:facebook:lint #58

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

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

Build failed - libraries:facebook:lint #58

icaspi opened this issue Jun 15, 2015 · 6 comments
Labels

Comments

@icaspi
Copy link

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
Copy link
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
Copy link
Contributor

irpap commented Jun 15, 2015

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

@icaspi
Copy link
Author

icaspi commented Jun 15, 2015

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

@irpap
Copy link
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
Copy link
Author

icaspi commented Jun 19, 2015

That sorted out the issue, thanks!

@jvillard
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants