无法解析提供者android:name

时间:2015-09-15 18:06:13

标签: android cannot-find-symbol

我似乎无法弄清楚这里是我编辑的android manifest.xml代码。它一直说.NotesProvider附加到android:name无法解析

<?xml version="1.0" encoding="utf-8"?>

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <activity
        android:name=".MainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <provider
        android:authorities="com.mizer.spizer.mizer.com.spizer.mizer.evaluation.notesprovider"
        android:name=".NotesProvider"
        android:exported="false" />

</application>

1 个答案:

答案 0 :(得分:0)

提供商列表的语法似乎不正确。必须用分号分隔多个权限。您似乎在列表中有重复的权限,或者您有多个未使用分号分隔的权限。

有关在此处使用提供程序元素的信息,请参阅Google开发人员文档:

http://developer.android.com/guide/topics/manifest/provider-element.html

向下滚动到第一个属性'Android:authorities'