2014-04-04 4 views
0

여기 내 매니페스트 파일입니다. 누군가 내가 잘못 가고 있다고 말할 수 있습니까? 오류 메시지는 "위젯을로드 할 수 없습니다"입니다. 나는 그 오류를 봤고 사람들은 레이아웃 클래스와 위젯 클래스를 확인하도록 제안했다. 버튼을 사용했지만 여전히 오류가 발생합니다. 도와주세요.위젯이 홈 화면에 나타나지 않습니다.

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.bmsce.appointext" 
    android:versionCode="1" 
    android:versionName="1.0" android:installLocation="auto"> 

    <uses-sdk 
     android:minSdkVersion="14" 
     android:targetSdkVersion="19" /> 

    <application 
     android:allowBackup="true" 
     android:icon="@drawable/logo_appointext" 
     android:label="@string/app_name" 
     android:theme="@style/AppTheme" > 

<!-- widget starts here -->   

     <activity 
      android:name="com.appointext.widget.Widget" 
      android:label="@string/app_name"> 
      <intent-filter> 
       <!-- <action 
        android:name="android.intent.action.MAIN"/> --> 
       <category 
        android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 

     <receiver 
      android:name="com.appointext.widget.Widget" 
      android:label="Appointext widget"> 
      <intent-filter> 
       <action 
        android:name="android.appwidget.action.APPWIDGET_UPDATE" /> 
      </intent-filter> 
      <meta-data 
       android:name="android.appwidget.provider" 
       android:resource="@xml/widget1_info" /> 
     </receiver> 
     </application> 
</manifest> 

답변

0

귀하의 매니페스트는 활동 및 위젯에 동일한 클래스 이름을 설정하고 있음을 보여줍니다. 위젯 클래스가 AppWidgetProvider를 확장하는지 확인하십시오.

android:name="com.appointext.widget.Widget" 
관련 문제