Error inflating class com.google.ads.AdView

前端 未结 7 2146
余生分开走
余生分开走 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:02

    I was experiencing this, too. The build path didn't seem to work no matter what I did. So I exited Eclipse, created a new libs folder in the workbench package directory. Added the GoogleAdMobAdsSdk-6.0.1.jar to that folder. I DID NOT add the whole SDK, just the jar file. Then restarted Eclipse. I had to refresh the project inspector column to show the changes I made outside of Eclipse. It showed the new libs folder and jar file, but it still didn't work... Then I right clicked on the new libs folder and set it as a SOURCE FOLDER. NOW EVERYTHING WORKS!

    Im using Eclipse Version: Indigo Service Release 2 Build id: 20120216-1857

    Android Development Tools 18.0.0.v201203301601-306762

    It seems that maybe the tools are ahead of the documentation... or some kind of Eclipse bug.... Very aggravating!

提交回复
热议问题