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´.