Can't add ads to my app.

前端 未结 5 568
渐次进展
渐次进展 2021-01-18 07:57

So I followed this guide from admob with Google Play Services, https://developers.google.com/mobile-ads-sdk/docs/admob/fundamentals#play And I have encountered a problem. Th

5条回答
  •  感情败类
    2021-01-18 08:43

    Try to add directly at the import area the following lines

    import com.google.android.gms.ads.AdRequest;
    import com.google.android.gms.ads.AdSize;
    import com.google.android.gms.ads.AdView;
    

    If you are migrating to new way of use addMob don`t forget to remove the old library.

提交回复
热议问题