No resource identifier found for attribute


The com.admob.android.ads.AdView tag was giving messages:
Multiple annotations found at this line:
– error: No resource identifier found for attribute ‘backgroundColor’ in package
– error: No resource identifier found for attribute ‘refreshInterval’ in package
– error: No resource identifier found for attribute ‘keywords’ in package
– error: No resource identifier found for attribute ‘primaryTextColor’ in package
– error: No resource identifier found for attribute ‘secondaryTextColor’ in package

the solution was to add an arrs.xml file to the values folder with the following contents:
<?xml version="1.0" encoding="utf-8" ?>
<resources>
<declare-styleable name="com.admob.android.ads.AdView">
<attr name="backgroundColor" format="color" />
<attr name="primaryTextColor" format="color" />
<attr name="secondaryTextColor" format="color" />
<attr name="keywords" format="string" />
<attr name="refreshInterval" format="integer" />
</declare-styleable>
</resources>

Comments 1

Leave a Reply

Your email address will not be published. Required fields are marked *