Error inflating class com.google.android.gms.ads.AdView Android Studio

前端 未结 1 560
你的背包
你的背包 2021-01-13 11:02

I\'m going crazy.

I\'m trying to change admob using google play services. But i\'m stuck on this error.

Caused by: android.view.InflateException: Bin         


        
相关标签:
1条回答
  • 2021-01-13 11:18

    The better way to include Google Play Services is via a Library dependency in the Project Structure dialog -- instead of adding the jar file as you have done, click the + button > Library dependency. Google Play Services should be in the list.

    Also, if you're adding jar files, it's really best to not put them in the build folder -- that can get erased if you do a clean build. The best place is in a libs directory at your module root.

    0 讨论(0)
提交回复
热议问题