我有关于一些属性的几个清单错误。我没有对应用程序自动生成的清单进行任何更改,但我仍然得到了几个错误。(我正在使用 Android Studio 1.2.2)
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.iustinian.girlfriendsolver"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="22" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.iustinian.girlfriendsolver.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>
</application>
</manifest>
-对于xmlns:android属性,我收到了“URL未注册”。
-对于android versionCode、versionName、allowBackup、label和theme,我收到了“此处不允许使用属性”。
我查看了清单文档,但没有找到答案。例如,allowBackup属性的位置与文档中指定的完全相同。
编辑:在进一步查找后,我发现在android:theme“@style/AppTheme”处,我得到了一个没有资源与给定名称匹配的结果。这是Gradle构建中唯一显示的内容。我已经多次清理并重建了项目。