<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.himi"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<receive android:name="CustomBroadcastReceiver">
<intent-filter>
<action android:name="android.intent.action.PHONE_STATE" />
</intent-filter>
</receiver>
</application>
<uses-permission android:name="android.intent.action.PHONE_STATE" />
<uses-sdk android:minSdkVersion="7"/>
</manifest>
红色部分的代码报错了
Multiple annotations found at this line:
- ERROR Error parsing XML: mismatched tag
- The end-tag for element type "receive" must end with a '>'
请问应该怎么改呢
------解决方案--------------------
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.himi"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
<receive android:name="CustomBroadcastReceiver">
<intent-filter>
<action android:name="android.intent.action.PHONE_STATE" />
</intent-filter>
</receive>
</application>
<uses-permission android:name="android.intent.action.PHONE_STATE" />
<uses-sdk android:minSdkVersion="7"/>
</manifest>
试试 ,红色的名字多个r