我正在尝试运行一个应用程序,但建筑物无法显示以下错误:
Failed to parse XML in \app\src\main\AndroidManifest.xml
org.xml.sax.SAXParseException; systemId: file:/app/src/main/AndroidManifest.xml; lineNumber: 2; columnNumber: 62; The prefix "android" for attribute "android:name" associated with an element type "uses-feature" is not bound.
这是我的 AndroidManifest.xml 文件:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="facebook.f8demo">
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera2.full" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".ClassifyCamera" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
答案 0 :(得分:0)
转到Build-> Clean project and Rebuild project。有用 ... 或(如果干净的项目不起作用/显示错误) 从“ C盘”中手动删除构建文件夹