Android Packaging error error:execution FAILED for Task´:app:lintvitalrelease´.

Source: Internet
Author: User

From: http://dditblog.com/itshare_657.html

Today before the modification of the project, ready to pack the time, not packaged together, has been prompted to have a problem, the error is some of what strings.xml inside some information, a little to understand, I also try to change the string.xml inside the error, but still can not pack, And then scroll down to see the last hint message as follows

Error:ExecutionFailedForTask´:App:Lintvitalrelease´.> LintFound fatal errorsWhileAssembling a release target. ToProceed,Either fix the issues identified by lint,or modify your build script as follows: ...Android{ lintoptions { Checkreleasebuilds false Span class= "pun" >// or, if you prefer, can  Continue to check for errors in  release Builds, // but Span class= "KWD" >continue The build even when errors is Found:} }  ... 

Solution Solutions

In fact, the solution has been prompted, is to add a configuration in the corresponding project Build.gradle, in the app's Build.gradle android{} to add the following code, and then run generate signed apk is normal

Android{Compilesdkversion23Buildtoolsversion´25.0.0´Defaultconfig{ApplicationID"Com.luzhiyao.sgongdoocar"Minsdkversion14Targetsdkversion23Versioncode5Versionname"1.1.0" }Buildtypes{ release { minifyenabled false proguardfiles Getdefaultproguardfile (´proguard- Android. Txt´),  ´proguard-< Span class= "PLN" >rules.´ } }//add the following configuration on ok  lintoptions { Checkreleasebuilds false Abortonerror false } }             /span>                

If the resources are helpful to you, have a great harvest after browsing, may wish to give me a small reward, your encouragement is to maintain my blog to continue to write the most power

Want to get the latest DD blog code, you can scan the QR code below, follow the DD blog public Number (ddblogs)

Or you can follow my Sina Weibo, learn the latest news of DD Blog: DD blog Weibo (Dwtedx Weibo)

If you have any questions about the resources or feel that there is still a lot of room for improvement, you can comment on the blog post and hope to advise

In order to ensure timely response, you can use the blog message board to me message: DD Blog Message Board (DWTEDX's message board)

Thank you for your visit, wish you a happy life, work well, welcome to hang around

Android Packaging error error:execution FAILED for Task´:app:lintvitalrelease´.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.