读书人

初学者一下Multiple annotations foun

发布时间: 2012-04-18 15:01:59 作者: rapoo

菜鸟求助一下Multiple annotations found at this line
<?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

读书人网 >Eclipse开发

热点推荐