AndroidManifest.xml error - A pseudo-attribute name is expected.

0

Good morning, When I run the application, an error message appears in AndroidManifest.xml

"An error has occurred: Exception while parsing the supplied manifest C: \ Users \ Weslley \ AndroidStudioProjects \ ProjectName \ app \ src \ main \ AndroidManifest.xml" A pseudo-attribute name is expected. "

Below the AndroidManifest.xml code

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
android:hardwareAccelerated="true"

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher2"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/MyMaterialTheme">
    <activity
        android:name=".activities.DashboardActivity"
        android:configChanges="orientation|keyboard|keyboardHidden"
        android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name=".activities.NoInternetConnectionActivity" />
    <activity android:name=".activities.UnavailableServiceActivity" />
</application>

    
asked by anonymous 11.07.2017 / 13:56

1 answer

1

This excerpt:

android:hardwareAccelerated="true"

is loose in code. It should be within the TAG <application> , like the others.

The manifest should also begin with this TAG:

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

And all the rest of your code above (from the manifest) should be inside these tags (and below the TAG above):

<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="NOME DO PACKAGE">

... SEU CÓDIGO
</manifest>
    
11.07.2017 / 14:10