Error inflating class com.google.ads.AdView

前端 未结 7 2090
余生分开走
余生分开走 2020-11-27 06:55

Hello I am new to android dev and admob. I am trying to make a simple test app with a button, a couple pages and admob at the bottom. Everything works fine until I try imple

相关标签:
7条回答
  • 2020-11-27 07:20

    For me it worked like this.

    • close eclipse
    • add manually the sdk ad jar file in your project's "libs" folder
    • open eclipse
    • refresh your project till the sdk jar appears on libs folder
    • go to your project's properties > Java Build Path > Library Tab and choose "add Jars" instead of an external one. and select the sdk from the list below.
    • go to "Order and Export" tab and select again the SDK
    • click ok AND ITS DONE.

    Then just add the proper code in the manifest and the xml.

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