Attribute android name does not allowed in manifest?

Abhishek Bhardwaj

How to solve the problem android:name attribute does not allowed here. The solution that was given in another question does not work for me.

This is my manifest file....

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="saleskit.orbitsys.com.androidvolleysingletondemo">
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        >

        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

        </activity>



    </application>
    <application
        android:name=".AppController">
    </application>



</manifest>
Nithinlal

In your code, there is two application tag remove that. And add the name tag to the existing application tag

In a manifest file, you can use only one application tag

So Please replace your code by this code. For more information Refer

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="saleskit.orbitsys.com.androidvolleysingletondemo">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"

    android:name=".AppController"
    android:theme="@style/AppTheme"
    >

    <activity android:name=".MainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>

    </activity>



</application>
</manifest> 

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Android manifest attribute not allowed here

From Dev

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

From Dev

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

From Dev

Does an Android Library need a manifest ,app_name,Icon?

From Dev

What does android:name attribute do?

From Dev

Error while setting WRITE_EXTERNAL_STORAGE permision in manifest - Unknow attribute android:name

From Dev

Error:(15) Tag <uses-permission> attribute name has invalid character ' '.Android Manifest

From Dev

Missing Application-Name manifest attribute for:

From Dev

What is android:immersive attribute in Android manifest file?

From Dev

JAR file manifest does not contain permission attribute

From Dev

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

From Dev

Exporting Jar file with Manifest attribute in Android Studio?

From Dev

Multiple Application android:name in Android Manifest

From Dev

Android Manifest application android:name multiples names

From Dev

The android:name attribute in the <fragment>

From Dev

Malformed Manifest - Tag <activity> missing required attribute name

From Dev

Android Gradle replace Package name for a value in manifest

From Dev

Android - App Update Manifest Version Code and Name

From Dev

Multiple application android:name tags in manifest

From Dev

Android Gradle replace Package name for a value in manifest

From Dev

Must I specify the parent activity name in the Android Manifest?

From Dev

how to Add two android:name attributes to Application tag in Manifest file?

From Dev

Multidex And Singleton Class Uses android:name In The Manifest Application Tag

From Dev

How to change app_name into android manifest in runtime?

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"

Related Related

  1. 1

    Android manifest attribute not allowed here

  2. 2

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

  3. 3

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

  4. 4

    Does an Android Library need a manifest ,app_name,Icon?

  5. 5

    What does android:name attribute do?

  6. 6

    Error while setting WRITE_EXTERNAL_STORAGE permision in manifest - Unknow attribute android:name

  7. 7

    Error:(15) Tag <uses-permission> attribute name has invalid character ' '.Android Manifest

  8. 8

    Missing Application-Name manifest attribute for:

  9. 9

    What is android:immersive attribute in Android manifest file?

  10. 10

    JAR file manifest does not contain permission attribute

  11. 11

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

  12. 12

    Exporting Jar file with Manifest attribute in Android Studio?

  13. 13

    Multiple Application android:name in Android Manifest

  14. 14

    Android Manifest application android:name multiples names

  15. 15

    The android:name attribute in the <fragment>

  16. 16

    Malformed Manifest - Tag <activity> missing required attribute name

  17. 17

    Android Gradle replace Package name for a value in manifest

  18. 18

    Android - App Update Manifest Version Code and Name

  19. 19

    Multiple application android:name tags in manifest

  20. 20

    Android Gradle replace Package name for a value in manifest

  21. 21

    Must I specify the parent activity name in the Android Manifest?

  22. 22

    how to Add two android:name attributes to Application tag in Manifest file?

  23. 23

    Multidex And Singleton Class Uses android:name In The Manifest Application Tag

  24. 24

    How to change app_name into android manifest in runtime?

  25. 25

    JMH no main manifest attribute

  26. 26

    "no main manifest attribute"

  27. 27

    No main manifest attribute - IntelliJ

  28. 28

    maven: no main manifest attribute

  29. 29

    "no main manifest attribute"

HotTag

Archive