Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

AndroidManifest.xml error

Discussion in 'Editor & General Support' started by Klamyth, Jul 16, 2015.

  1. Klamyth

    Klamyth

    Joined:
    Jan 11, 2015
    Posts:
    4
    I am trying to integrate google services into my game. I am almost done completing my first game, YAY! so my issue is when i'm doing a test build on my phone i get this error

    Error building Player: XmlException: 'manifest' is expected file:///C:/Users/Adam/Documents/New Unity Project 2/Assets/Plugins/Android/AndroidManifest.xml Line 49, position 8.

    Line 49 of my androidmanifest is </application>.

    i am truly at a loss, and have done several google searches with no result. Please help
     
  2. Klamyth

    Klamyth

    Joined:
    Jan 11, 2015
    Posts:
    4
    okay, so i feel a little slow. all you have to do is rename the file to Manifest.xml and it worked. i was sure that it had to be called AndroidManifest.xml, but i guess not.

    Today's lesson is, don't program when you haven't had morning coffee.
     
  3. 3rica

    3rica

    Joined:
    Jan 26, 2016
    Posts:
    1
    I'm having this same issue, except-- when I change AndroidManifest.xml to Manifest.xml Unity then overwrites my customized manifest file with other stuff, generating two new manifest files in the process in the Temp directory.

    Very annoying, because it is crucial for my project to have the custom manifest file.
    Any ideas why Unity is asking for the file to be renamed?