最近の更新

2016年10月28日金曜日

『The ad size and ad unit ID must be set before loadAd is called.』エラーの対処方法

【目的】
『The ad size and ad unit ID must be set before loadAd is called.』を対処する。



【現象】
1.Android Studioでアプリ起動時に『The ad size and ad unit ID must be set before loadAd is called.』のエラーが出て起動しない。
2.layout.xmlで『adSize』と『adUnitId』は固定で指定している。



【対処方法】
記載を下記の様に変更する。
『xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"』

『xmlns:ads="http://schemas.android.com/apk/res-auto"』



以上です。


0 件のコメント:

コメントを投稿

注: コメントを投稿できるのは、このブログのメンバーだけです。

関連記事