Error inflating class com.google.ads.AdView

前端 未结 7 2130
余生分开走
余生分开走 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 06:59

    In Android Studio: 1. Paste the Google AdMob SDK into the libs folder for your project 2. Add an entry to dependencies section of your build.gradle for the project pointing at the jar. 3. Rebuild your project

    dependencies {
    ...
    compile files('libs/GoogleAdMobAdsSdk-6.4.1.jar', '... other entries...')
    }
    

    Note that compile files takes multiple jar entries. If you already have a compile files entry you can just add to it by separating entries with a comma.

提交回复
热议问题