0

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?

4

1 回答 1

0

经过大量投入时间后,我发现Google Play服务库设置有问题。我并没有弄清楚到底是什么,但是在删除它并再次添加它之后,实例化的问题就消失了。

于 2014-04-29T07:18:25.203 回答