Android Gradle - build tips - Lint HTML layout

With the release of gradle 2.10 there is a nice feature of Lint check html reports.

Simply speaking, whenever you run a build, a nice formatted html report will be generated. It is a VERY nice touch to the lint xml reports and makes the report much more readable and hence more actionable. It will save you time and make your code more robust and stable.

This feature was contributed by Sebastian Schuberth .

To check it out do the following:

1. Download gradle 2.10 and extract it to the default Android Studio gradle directory.
It may be:
C:/Program Files/Android/Android Studio/gradle/gradle-2.10

2. locate the file gradle-wrapper.properties via Android Studio and change distributionUrl to: https\://services.gradle.org/distributions/gradle-2.10-all.zip

3. In Android Studio open File->Settings and change gradle location to the one you extracted the gradle 2.10 file.
Android studio - change gradle version

4. Open a terminal for the project folder (either by Android Studio terminal view or explicitly via command line tool) and type: gradlew {module.name}:build
Note: The parameter {module.name} is optional and intended for multi module project where you want to build certqin modules.

That's it.

After the build finishes, scroll via its output and you will see something similar to:
Wrote HTML report to file:///C:/dev/workspace/common/commonlibrary/build/outputs/lint-results.html
Wrote XML report to file:///C:/dev/workspace/common/commonlibrary/build/outputs/lint-results.xml

Open the html link and you would be pleasantly surprised.

Check it out:

Lint Html report - sample


IMHO, the generated report is visually better than the report being generated via Android Studio-> Code Inspection. It is very convenient to read the warnings/errors and correct.

Another advantage is that report will be generated on every build and not on demand.

Note:
The lint html report would be generated from command line and not via Android Studio default build.


Please include a link to the original post

Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. If you have a website, adding a simple HTML form to your site, such as a feedback form, contact form, or other web form, can be a tough task. Freelancer In Hastings

    ReplyDelete
  4. This tutorial is precious for the HTML learners. It iss tempting to look at your renovation love what you have done like dissertation writing services. As well the Gradle works with the build toolkit to provide processes and configurable settings.

    ReplyDelete
  5. That is the reason you should choose a company that have previously developed such fast and cool Android applications. Otherwise, choosing a not-so-good Android development company can cost you much too.
    Game killer apk

    ReplyDelete
  6. Based on your requirement, you should hire an experienced Android app developer to create innovative applications for your company.
    Download Game Killer Apk

    ReplyDelete
  7. With more than 2.4 million applications and games at present recorded on Google Play it's turned out to be increasingly hard to emerge.read

    ReplyDelete

  8. Game Killer apk is an android application which helps you hack your favorite android games or applications without any issues.
    app like game killer

    ReplyDelete
  9. Several cell phone producers are incorporating the Android operating system into their cell phones. Here are some of the top Android phones on the market today.latest supersu download

    ReplyDelete
  10. Hello there! I just want to offer you a big thumbs up for your great info you have right here on this post. I'll be coming back to your web site for more soon.
    ipl auction 2018 live

    ReplyDelete
  11. Written an essay is not an easy task, it is very hard to provide a quality paper. We provide the best essay writing service apex essay https://www.apexessays.com/essay-writing-service/ get it now!

    ReplyDelete
  12. Brawl stars Android is a game where each player is ranked by level and their total number of trophies attained. The player will work towards collecting brawlers, one of which can be used in each game

    ReplyDelete
  13. I was just browsing through the internet looking for some information and came across your blog. Its opportunity are so fantastic and working style so speedy.

    IPL season 11 .

    ReplyDelete
  14. Gangstar Vegas is an open world action-adventure video game developed by Gameloft for Android, iOS.
    gangstar vegas apk obb

    ReplyDelete
  15. To get you started on your quest, here's ten of the best free brain and puzzle Android games. They're all put together very well and are going to be a lot of fun to play.
    Bullet Force Hack Online

    ReplyDelete
  16. This comment has been removed by a blog administrator.

    ReplyDelete
  17. This comment has been removed by a blog administrator.

    ReplyDelete
  18. Your new valuable key points imply much a person like me and extremely more to my office workers. With thanks.

    Informatica Online Training
    ETL Testing Online Training
    Hadoop online Training

    ReplyDelete
  19. What platform and theme are you using if I may ask? Where can I buy them? x
    download mobdro

    ReplyDelete
  20. I really like reading through a post that can make people think. Also, many thanks for permitting me to comment!
    ipl live streaming.

    ReplyDelete
  21. Thanks for taking the time to discuss this, I feel strongly about it and adore learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with more details? It is extremely helpful for me.
    Brawl Stars Cheats

    ReplyDelete
  22. It has three simple steps to make Android application. First of all you have to choose an app then customize your content (text) of your choice and even pictures. Finally share it. ShowBox APK

    ReplyDelete
  23. Most of these games are available for free while others require you to purchase them. According to research, games are the most downloaded applications on Android platform. So far, users have downloaded hundreds of millions of games.fornite hack

    ReplyDelete
  24. This helpful free Android app also allows you to create and track your portfolio(s). While this app isn't going to blow anyone away by the dozens of additional features that you may or may not want.

    ReplyDelete
  25. Thank's for this great android app information.

    ReplyDelete
  26. This comment has been removed by a blog administrator.

    ReplyDelete
  27. This comment has been removed by a blog administrator.

    ReplyDelete
  28. This comment has been removed by a blog administrator.

    ReplyDelete
  29. This comment has been removed by a blog administrator.

    ReplyDelete
  30. This comment has been removed by a blog administrator.

    ReplyDelete
  31. This comment has been removed by a blog administrator.

    ReplyDelete
  32. This comment has been removed by a blog administrator.

    ReplyDelete
  33. This comment has been removed by a blog administrator.

    ReplyDelete
  34. This comment has been removed by a blog administrator.

    ReplyDelete
  35. This comment has been removed by a blog administrator.

    ReplyDelete
  36. This comment has been removed by a blog administrator.

    ReplyDelete
  37. This comment has been removed by a blog administrator.

    ReplyDelete
  38. This comment has been removed by a blog administrator.

    ReplyDelete
  39. This comment has been removed by a blog administrator.

    ReplyDelete
  40. Thank you for this Sharing.
    Check out the best Electronics

    ReplyDelete
  41. Thanks for sharing, nice post! Post really provice useful information!

    Giaonhan247 chuyên dịch vụ mua vòng tay pandora từ dịch vụ order hàng mỹ hay nhận mua nước hoa pháp từ website nổi tiếng hàng đầu nước Mỹ mua hàng ebay ship về VN uy tín, giá rẻ.

    ReplyDelete
  42. Here at this site really the fastidious material collection so that everybody can enjoy a lot.
    showbox apk 2019

    ReplyDelete
  43. hi
    Thanks for the informative and helpful post, obviously in your blog everything is good..
    replisplusYour work is very good and I appreciate you and hopping for some more informative posts

    ReplyDelete
  44. watch and download latest movies or tv show shows for free..
    showbox apk 4.93

    ReplyDelete
  45. this blog is very attractive an informational and also, visit my site to listen music and watch tv shows for free mobdro download for android 2.0 52

    ReplyDelete
  46. Great Article. Thank you for sharing! Really an awesome post for every one.
    Bike Accessories

    ReplyDelete
  47. Take the help of best expert for easiest Textbook Solutions Manual at the most afoordable cost.

    ReplyDelete
  48. Obviously, this is the opportune chance to put resources into one such application that will fill in as an advanced wallet! TutuApp web

    ReplyDelete
  49. This comment has been removed by the author.

    ReplyDelete
  50. Your Post is very useful, I am truly happy to post my note on this blog. You can see Java Tutorials Example here.

    ReplyDelete
  51. Günlük Daire Kirala
    Kayseri Günlük KİRALIK Daire
    Sahibinden Günlük Daire Kirala
    Diyarbakır Günlük KİRALIK Daire
    Eskişehir Günlük KİRALIK Daire
    Bursa Günlük KİRALIK Daire
    Alsancak Günlük KİRALIK Daire
    Eryaman Günlük KİRALIK Daire
    Bornova Günlük KİRALIK Daire
    Çankaya Günlük KİRALIK Daire
    Zeytinburnu Günlük KİRALIK Daire
    Şişli Günlük KİRALIK Daire
    Pendik Günlük KİRALIK Daire
    Mecidiyeköy Günlük Kiralık Daire
    Kadıköy Günlük Kiralık Daire
    Beylikdüzü Günlük Kiralık Daire
    Başakşehir Günlük Kiralık Daire
    Bakırköy Günlük Kellık
    Dairehiral Günlük
    Kelıkiral Dairehiral Günlükıkıkık Dairehiral Bahküireçıkıkıkık Dairehiral Bahküire Günlük Kelıkık Dairehiral Bahküireçıvılı

    ReplyDelete
  52. Thank you for these tips. If you want to make video about it I advise you to use this site https://soclikes.com/ to get youtube likes

    ReplyDelete
  53. Interesting article! Thanks to authr for sharing. Don't you think it's worth posting these thoughts on Instagram? After all, this social network is now very popular. By the way, I advise you to buy instagram likes in order to quickly increase the number of subscribers and promote your account to the top.

    ReplyDelete

  54. This is really a good article. The Government of Ukraine grants the e-visa online. Do you have any idea about the [URL=https://ukraineevisa.net/ukraine-visa-fees/]Ukraine visa fees[/URL]?. The Ukraine visa fee is dependent on your nationality and type of visa

    ReplyDelete
  55. I appreciate your efforts . Ukraine tourist Visa allows several foreign nationalities to enter Ukraine for enjoyment and fun. It is a single-entry travel document.

    ReplyDelete
  56. Great article this is really informative and innovative: with new updates.with new updates. It was really valuable. Thanks a lot.Indian Business Visa is an electronic business travel authorization. Foreigners who want to come to India for business purposes like: business, attending technical meetings, setting up industrial/business etc. You can apply through the India business visa site.

    ReplyDelete
  57. Wow.. Very informative article thanks for sharing please keep it up.. Pakistan visa fees depend on your visa type and nationality.

    ReplyDelete
  58. This is a great post.I am going to write on this topic based on your writing.
    Would you please come to my blog and give me some advice? We look forward to your feedback
    english stories english short stories with moral value What is the factorial of 100

    ReplyDelete

  59. Your writing and explanations are very impressive. Your article is very informative. Country for Indian e Visa 2022, Now around 156 citizens of the country are eligible to get India e-Visa under India e Visa scheme. Foreign nationals can check Indian visa websites, & they are citizens of the eligible country, yes or no. And then apply for an Indian visa.


    ReplyDelete
  60. Your blog is filled with so much information, thank you. It helped me find what I was looking for. Turkey e visa is an online way to get on your given email. You don’t need to visit the embassy for it.

    ReplyDelete
  61. Great Platform. Are you also searching for nursing essay writers ? we are the best solution for you. We are best known for offering the best nursing essay writing services

    ReplyDelete

Post a Comment