Note that there are some explanatory texts on larger screens.

plurals
  1. POcom.google.ads.AdView failed to instantiate error
    text
    copied!<p>I tried alot of things but couldn't manage to do it. The app always crashes when I try. I want the ad to be at the bottom of the screen and not cover the last listview item when scrolled to the bottom. </p> <p>Here is my xml that works without the ads. EDIT: Here is the latest code. I am getting com.google.ads.AdView failed to instantiate error. My ads work in a different layout but for this layout they are not showing.</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" android:layout_width="match_parent" android:layout_height="match_parent" &gt; &lt;LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" android:layout_weight="1"&gt; &lt;ListView android:id="@+id/listview" android:layout_width="match_parent" android:layout_height="match_parent" /&gt; &lt;com.google.ads.AdView android:id="@+id/ad" android:layout_width="fill_parent" android:layout_height="fill_parent" ads:adSize="BANNER" ads:adUnitId="---------------------" ads:loadAdOnCreate="true" android:gravity="center_horizontal" /&gt; &lt;/LinearLayout&gt; &lt;FrameLayout android:id="@+id/header" android:layout_width="match_parent" android:layout_height="@dimen/header_height"&gt; &lt;com.gains.myapp.KenBurnsView android:id="@+id/header_picture" android:layout_width="match_parent" android:layout_height="match_parent" android:src="@drawable/picture0" /&gt; &lt;ImageView android:id="@+id/header_logo" android:layout_width="@dimen/header_logo_size" android:layout_height="@dimen/header_logo_size" android:layout_gravity="center" android:src="@drawable/ic_header_logo" /&gt; &lt;/FrameLayout&gt; </code></pre> <p></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload