首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

初学者一下Multiple annotations found at this line

2012-04-18 
菜鸟求助一下Multiple annotations found at this line?xml version1.0 encodingutf-8?manifest

菜鸟求助一下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

热点排行