当前位置: 代码迷 >> Eclipse >> 初学者一下Multiple annotations found at this line
  详细解决方案

初学者一下Multiple annotations found at this line

热度:55   发布时间:2016-04-23 13:34:17.0
菜鸟求助一下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
  相关解决方案