1

Android code inspection for html files gives an error "Start tag has wrong closing tag" and "Closing tag matches nothing " but everything is fine in that particular html file.

I looked around in Android Studio and inspection settings as such but not been able to permanently disable inspection of some files (like html files in this case). I was wondering if we could have any config setting in build.gradle file just like the custom lint config file or if there is any other way to edit inspection settings.

praveen_85
  • 182
  • 2
  • 13
  • Out of curiosity, could you post the html file? – Michiyo Oct 01 '15 at 22:53
  • Here is the sample html file: `

    ...........

    Introduction

    ............

    • ........
    • ..........
    `
    – praveen_85 Oct 01 '15 at 23:20
  • i have all the start and end tags properly written but if i introduce for example a in the paragraph, it complains..which is weird – praveen_85 Oct 01 '15 at 23:21
  • I tried changing the inspection settings locally and all. But wouldn't that be local to my machine?. I want to have the configuration setting such that it could be checked in to code base just like we do **lintconfig file "filename.xml"** so when some one else does inspect, then these false positive errors should not show up.. – praveen_85 Oct 01 '15 at 23:26
  • It looks like you mistakenly typed the `
    ` (or `
    `?)as ``, so the code inspector thinks you're trying to close the `

    ` tag with a ``. I don't know the answer to your question, but I think fixing your html would be the best solution.

    – Michiyo Oct 02 '15 at 17:25

1 Answers1

0

you are probably putting the html file in the wrong place Are you sure that your file is in this directory? YourApplicationName\app\src\main\assets

user5450074
  • 97
  • 1
  • 8