我想在main.xml中添加它
<com.jrlnv.qmais91534.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="false"
ap:canShowMR="false"
/>
这是来自新airpush SDK的横幅广告
但我得到了这个错误
Multiple annotations found at this line:
- error: No resource identifier found for attribute 'canShowMR' in package 'com.MKA'
- error: No resource identifier found for attribute 'placementType' in package 'com.MKA'
- error: No resource identifier found for attribute 'banner_type' in package 'com.MKA'
- error: No resource identifier found for attribute 'animation' in package 'com.MKA'
- error: No resource identifier found for attribute 'test_mode' in package 'com.MKA'
任何帮助
谢谢
答案 0 :(得分:8)
您还需要将mraid_attrs.xml文件放入应用的res&gt;值文件夹。该文件包含在SDK下载中。