Getting error in Admob native template "Unexpected resource type"

30 Views Asked by At
<com.google.android.ads.nativetemplates.TemplateView
   android:id="@+id/my_template"
   app:gnt_template_type="@layout/gnt_small_template_view"
   android:layout_width="match_parent"
   android:layout_height="match_parent" />

enter image description here

After adding this code in xml, getting error for the line "@layout/gnt_small_template_view" error "Unexpected resource type:'layout' expected:string"

Help to solve the issue.

0

There are 0 best solutions below