Native Ad (using medium sized template ) android.view.InflateException: Binary XML file line

1,003 views
Skip to first unread message

ksmob

unread,
Dec 4, 2019, 3:23:32 PM12/4/19
to Google Mobile Ads SDK Developers
Hi,

I am using native ad in my app. 

I have used google provided templates to setup native ad and it shows successfully when I use   gnt_small_template_view  

However, as soon I switch to gnt_medium_template_view. I get below error. 



java.lang.RuntimeException: Unable to start activity ComponentInfo   android.view.InflateException: Binary XML file line #15: Binary XML file line #15: Error inflating class com.google.android.ads.nativetemplates.TemplateView
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3114)
   

please help 

Regards 

Mobile Ads SDK Forum Advisor Prod

unread,
Dec 4, 2019, 5:55:44 PM12/4/19
to salma...@gmail.com, google-adm...@googlegroups.com
Hello there,

Thanks for reaching out to us. Can you please share code snippets or a sample project with your implementation for us to take a look? Are you using our Native Android SDK? Can you please confirm the SDK version and also share the complete stack trace? You can use "Reply Privately to Author" option to share the details privately.

Regards,
Deepika Uragayala
Mobile Ads SDK Team
 

ref:_00D1U1174p._5001UODrcF:ref

Mobile Ads SDK Forum Advisor Prod

unread,
Dec 5, 2019, 2:52:32 PM12/5/19
to salma...@gmail.com, google-adm...@googlegroups.com

Hello there,

Thank you for sharing the requested details. I was able to reproduce the issue on our end as well. I will share this with the rest of the team for further investigation and we will get back to you if we need any further details or if we have any update on this issue.

Salman Khan

unread,
Dec 5, 2019, 2:56:44 PM12/5/19
to Mobile Ads SDK Forum Advisor Prod, google-adm...@googlegroups.com
Great, thanks for the update. 
waiting for your reply in this regard.


Mobile Ads SDK Forum Advisor Prod

unread,
Dec 9, 2019, 6:23:52 PM12/9/19
to salma...@gmail.com, google-adm...@googlegroups.com
Hi,

This is Sam from the Mobile Ads SDK support team.

Can you please pull and try the latest version of the native templates code which has been updated to use Android X ?

Regards

Sam

ref:_00D1U1174p._5001UODrcF:ref

Salman Khan

unread,
Dec 10, 2019, 11:09:18 PM12/10/19
to Mobile Ads SDK Forum Advisor Prod, google-adm...@googlegroups.com
Thank you Sam. 

this is working perfectly and looks great.

Regards
Reply all
Reply to author
Forward
0 new messages