"机器人:名称"与元素类型相关联" null"不得包含'<'字符

时间:2014-09-17 07:17:50

标签: android xml

当我尝试实施heyzap sdk时,我收到此错误。我不知道这个问题是什么。这是

<activity android:name = "com.heyzap.sdk.ads.HeyzapInterstitialActivity"   
    android:configChanges = "keyboardHidden | orientation | screenSize | smallestScreenSize" />

<activity android:name = "com.heyzap.sdk.ads.HeyzapVideoActivity" 
    android:configChanges = "keyboardHidden | orientation | screenSize | smallestScreenSize" />

<receiver android:name = "com.heyzap.sdk.ads.PackageAddedReceiver">
    <intent-filter>
        <data android:scheme = "package"/>
        <action android:name = "android.intent.action.PACKAGE_ADDED"/>
    </intent-filter>
</receiver>

1 个答案:

答案 0 :(得分:0)

在此处添加空格/&gt;所以而不是

<data android:scheme = "package"/>
<action android:name = "android.intent.action.PACKAGE_ADDED"/>

应该是

<data android:scheme = "package" />
<action android:name = "android.intent.action.PACKAGE_ADDED" />

这适用于你的Android清单。