问题
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