• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Vardan Meliksetyan · May 12, 2014 at 02:46 PM · android

Xml problem

Hello developers help me I have problem with xml AndroidManifest.xml I Merge too manifest files it gives this error

Line 7, position 29. Error building Player: XmlException: Attribute name and qualified name must be identical.

alt text

 <supports-screens
     android:smallScreens="true"
     android:normalScreens="true"
     android:largeScreens="true"
     android:xlargeScreens="true"
     android:anyDensity="true"/>

 <application
     android:icon="@drawable/app_icon"
     android:label="@string/app_name"
     android:debuggable="true"
     android:hardwareAccelerated="true">
     
     <activity android:name="com.prime31.UnityPlayerNativeActivity" 
               android:screenOrientation="landscape"
               android:launchMode="singleTask"
               android:label="@string/app_name"
               android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"          
               android:name="com.xtr3d.extrememotion.Xtr3dOverrideProxyActivity">
               
         <intent-filter>
             <action android:name="android.intent.action.MAIN" />
             <category android:name="android.intent.category.LAUNCHER" />
         </intent-filter>            
         <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
     </activity>
     
   <activity
             android:name="com.applifier.impact.android.view.ApplifierImpactFullscreenActivity"
             android:configChanges="keyboardHidden|orientation|screenLayout|screenSize"
             android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
             android:hardwareAccelerated="true"
             
             />
     <activity 
         android:name="com.xtr3d.extrememotion.Xtr3dOverrideActivity" 
         android:launchMode="singleTask" 
         android:label="@string/app_name" 
         android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" 
         android:screenOrientation="landscape">
     </activity>
     
     <activity 
         android:name="com.xtr3d.extrememotion.Xtr3dOverrideNativeActivity" 
         android:launchMode="singleTask" 
         android:label="@string/app_name" 
         android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen" 
         android:screenOrientation="landscape">
         <meta-data android:name="android.app.lib_name" android:value="unity" />
         <meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" />
     </activity>
     
 <activity android:name="com.google.ads.AdActivity" 
           android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
           />
           
     <meta-data android:name="com.google.android.gms.games.APP_ID" android:value="\ 755268354543"/>
     <meta-data android:name="com.google.android.gms.appstate.APP_ID" android:value="\ 755268354543"/>
     <meta-data android:name="com.prime31.PlayGameServicesPlugin" android:value="UnityPlayerActivityProxy"/>
     <meta-data android:name="com.prime31.FacebookPlugin" android:value="UnityPlayerActivityProxy"/>
     
   <activity android:name="com.unity3d.player.VideoPlayer" android:label="@string/app_name" android:configChanges="keyboard|keyboardHidden|orientation|screenSize"></activity>
         <activity configChanges="orientation|screenLayout|screenSize" android:name="com.facebook.LoginActivity"></activity>
   <activity
             android:name="com.revmob.ads.fullscreen.FullscreenActivity"
             android:configChanges="keyboardHidden|orientation" >
   </activity>
         <meta-data android:name="com.facebook.sdk.ApplicationId" android:value="\ 1431803623733770"/>


     <uses-permission android:name="android.permission.INTERNET"/>
     <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
     <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
     <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
     
     <uses-feature android:name="android.hardware.touchscreen" />
     <uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="false" />
     <uses-feature android:name="android.hardware.touchscreen.multitouch.distinct" android:required="false" />
     <uses-permission android:name="android.permission.WAKE_LOCK" />
     <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="15" />
     <uses-permission android:name="android.permission.CAMERA" />
     <uses-permission android:name="android.permission.WAKE_LOCK" />
     <uses-feature android:name="android.hardware.camera" />
     <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
     <uses-feature android:name="android.hardware.camera.front" android:required="false" />
     <uses-feature android:name="android.hardware.camera.back" android:required="false" />
     <uses-feature android:glEsVersion="0x00020000" android:required="true" />
     
     
     


untitled.jpg (68.2 kB)
Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Vardan Meliksetyan · May 12, 2014 at 03:31 PM 0
Share

Is it posiable use 2 package in xml ? I delete this line and give Line 28 error

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by frankslater · Sep 21, 2017 at 03:11 PM

Hey @Vardan,

(I assume you sorted this since. Sorry, I just started in this world recently and could not help earlier, however in case it helps someone:)

"package" is a duplicated in your <manifest> tag, and again you have "android:name" twice in your first <activity> tag.

 [Line 3]:
                 package="com.unity3d.player" package="com.xtr3d.extrememotion"
 
 ...
 [Line 14]:
     <activity android:name="com.prime31.UnityPlayerNativeActivity" 
                android:screenOrientation="landscape"
                android:launchMode="singleTask"
                android:label="@string/app_name"
                android:configChanges="fontScale|keyboard|keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode|touchscreen"
 android:name="com.xtr3d.extrememotion.Xtr3dOverrideProxyActivity">

(Edited/deleted because had a little glitch with special characters and the answer didn't make much sense that way)

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image fabiotgarcia · Mar 02, 2019 at 12:31 PM 0
Share

Hi @frankslater I'm getting the same error. But I can't see any duplicates on my code. Can you please help me?

avatar image frankslater fabiotgarcia · Mar 02, 2019 at 02:55 PM 0
Share

$$anonymous$$ake sure that the android:name is correct.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

how many computers does the android basic license cover 2 Answers

Embedded app in unity 0 Answers

AndroidManifest.xml: meta-data unityplayer.UnityActivity 2 Answers

How can I protect Apk generated by Unity ? 5 Answers

Help with Android Joysticks 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges