Android manifest attribute not allowed here

Iustinian Olaru

I have several manifest errors regarding some attributes . I have not made any changes to the manifest the application generated automatically yet i get several errors. *( I'm using 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>

-For the xmlns:android attribute i get "URL not registered " -For android versionCode , versionName , allowBackup , label and theme I get "attribute not allowed here "

I took a look at the manifest documentation and couldn't find an answer . For example the allowBackup attribute is placed exactly like the documentation specifies .

Edit: after looking around some more I found that at android:theme "@style/AppTheme" I get a no resource matches the given name . This is the only thing that shows up in the Gradle Build . I have cleaned and rebuilt the project several times .

rajlaxmi_jagdale

Just Close your manifest file and reopen it. It worked for me.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Attribute android name does not allowed in manifest?

From Dev

Android Lint Shape not allowed here

From Dev

What is android:immersive attribute in Android manifest file?

From Dev

Tag <manifest> attribute package has invalid character ' ' Android Manifest

From Dev

Exporting Jar file with Manifest attribute in Android Studio?

From Dev

'name' attribute should be defined - error in android manifest

From Dev

Android: "Element intent-filter is not allowed here" inside <provider>?

From Dev

Element ignore is not allowed here, in Android lint.xml

From Dev

Element data is not allowed here in Android Studio data binding

From Dev

"AllowOverride not allowed here" in WAMP

From Dev

AllowOverride not allowed here

From Dev

"set" directive is not allowed here

From Dev

.htaccess: LogLevel not allowed here

From Dev

variable declaration not allowed here

From Dev

Array initializer is not allowed here

From Dev

Column not allowed here error

From Dev

"AllowOverride not allowed here" in WAMP

From Dev

variable declaration not allowed here

From Dev

"Tag <Activity > attribute name has invalid character ' '. " Android Manifest

From Dev

JMH no main manifest attribute

From Dev

"no main manifest attribute"

From Dev

No main manifest attribute - IntelliJ

From Dev

maven: no main manifest attribute

From Dev

"no main manifest attribute"

From Dev

Error: 'void' type not allowed here

From Dev

nginx "env" directive is not allowed here

From Dev

Apache error "AliasMatch not allowed here"

From Dev

cdef statement not allowed here for structure

From Dev

Why is variable declaration not allowed here?