Issue
I know I can ignore a rule in Lint with attribute tools:ignore
My difficulty is that I want to ignore several rules.
In my case, for Google analytics ga_trackingId
, I want to ignore TypographyDashes and MissingTranslation
I tried with no success
<resources tools:ignore="TypographyDashes|MissingTranslation" xmlns:tools="https://schemas.android.com/tools" >
and
<resources tools:ignore="TypographyDashes,MissingTranslation" xmlns:tools="https://schemas.android.com/tools" >
and
<resources tools:ignore="TypographyDashes MissingTranslation" xmlns:tools="https://schemas.android.com/tools" >
I am now out of ideas. How can I specify several values in tools:ignore
?
Solution
The problem here was usage of wrong namespace uri in xml resource file;
xmlns:tools="https://schemas.android.com/tools"
Which should have been http://...
protocol instead. This is discussed in more details in issue 43070
Answered By - harism
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.