Androidmanifest.xml Error - A pseudo-attribute name is expected.

Asked

Viewed 517 times

0

Good morning, When I run the application, an error message appears on Androidmanifest.xml

"Error:Exception while Parsing the supplied manifest file C: Users Weslley Androidstudioprojects Projectname app src main Androidmanifest.xml > A pseudo-attribute name is expected. "

Below code Androidmanifest.xml

<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>

  • I believe I have to put this line: android:hardwareAccelerated="true" inside the application tag, try there

  • I did and the error still continues :(

1 answer

1


That stretch:

android:hardwareAccelerated="true"

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

The manifest should also start with this TAG:

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

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

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

... SEU CÓDIGO
</manifest>
  • I did and the error still continues :(

  • Error does not indicate line?

  • I edited my answer

  • I could see where the error was. In this part <?xml version="1.0" encoding="utf-8"? >, I accidentally switched version to mversion. I changed it and it was all right. Thanks for the help

Browser other questions tagged

You are not signed in. Login or sign up in order to post.