Exporting html report of Android Lint from Android Studio?

拟墨画扇 提交于 2019-12-07 04:40:56

问题


I came to know that we can't export xml/html reports of Android Lint in eclipse. Is it applicable to Android Studio as well?

I want to export xml / html report of Android Lint (used by - studio - analyze - Inspect Code)..

When I run it through my macbook terminal it says - -bash: ./gradlew: No such file or directory.

Let me know how can I resolve it.


回答1:


The lint report from (./gradlew lint) is different than the Android Studio code inspection report (Analyze -> Inspect Code). It looks like it includes all the Android Lint items and lots of additional checks

Here are the steps to export the Android Studio code inspection report:

  • Run Analyze -> Inspect Code
  • Find "Inspection Results" window/panel
    • if it's not visible, try View -> Tool Windows -> Inspection Results
  • In the inspection view, at left side, you will get an option symbol to export to html/xml and then, give the path where you want that file to be stored.
    • Note that the specified directory must exist



回答2:


From the IDE window, you need to open the Gradle view, inside this view you'll see a section called all tasks, you can either click on lint or on check.



来源:https://stackoverflow.com/questions/28292337/exporting-html-report-of-android-lint-from-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!