How to fix the error. / gradlew check connectedCheck after updating AndroidStudio to 0.4.0?

After updating AndroidStudio, I upgraded gradle to 1.9 in the wrapper and to 0.7.+ In the build.gradle dependencies.

Since then I get this error on startup. / gradlew check connectedCheck

 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:lint'. > Lint found errors with abortOnError=true; aborting build. 

EDIT

The gradle console also displays the following messages:

 Ran lint on variant release: 69 issues found Ran lint on variant debug: 69 issues found Wrote XML report to <PROJECT>/app/build/lint-results.xml Wrote HTML report to <PROJECT>/app/build/lint-results.html :app:lint FAILED 
+7
android android-studio gradle
source share
1 answer

You should see what lint errors are and fix them (some of them can be very important, so you should take a look); Gradle The console should contain a more detailed error message if you do not find anything in the error bar. If you want it to not interrupt your build when there was a lint error, then the error message lets you know what you should do: add this to your build.gradle file:

 android { lintOptions { abortOnError false } } 

Read more: Gradle crash when running lint task

+11
source share

All Articles