Cannot import com.google.android.gms:play-services-ads:17.1.1

前端 未结 3 852
滥情空心
滥情空心 2020-12-11 12:12
apply plugin: \'com.android.application\'
   android {
   compileSdkVersion 28

   defaultConfig {
      applicationId \"com.kaiboon0216gmail.homeownerstarterkit\"
          


        
3条回答
  •  再見小時候
    2020-12-11 12:23

    Go to Admob - Select App - App Setting - App ID copy the value from App ID

    Now add this (change this android:value="paste the App ID value you copy from your admob app" )

    
    

    meta-data into AndroidManifest.xml file

    No need to add anything in APPLICATION_ID from android:name="com.google.android.gms.ads.APPLICATION_ID"

    This will work!

    See the picture below for clear understanding

提交回复
热议问题