Domanda

In short, after adding Airpush banner ad to XML (I followed the wiki), I get following error upon startup of the application:

Failed to inflate android.view.InflateException: Binary XML file line 119: Error inflating class

I've added Airpush banner add inside layout XML like this:

<com.kuepm.ixmvw184326.AdView
    xmlns:ap="http://schemas.android.com/apk/res-auto"
    android:id="@+id/myAdView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    ap:animation="fade"
    ap:banner_type="inappad"
    ap:placementType="interstitial"
    ap:test_mode="true"
    ap:canShowMR="false"
    />

Instantiation problem is exposed also after switching to live preview of XML:

The following classes could not be instantiated: - com.kuepm.ixmvw184326.AdView

enter image description here

What is wrong?

È stato utile?

Soluzione

After a lot of invested time I found out something was wrong with Google Play Services library setup. I didn't find out what exactly, but after removing it and adding it again, the problem with instantiation is gone.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top