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. Dismiss Notice

Android Manifest

Discussion in 'AR/VR (XR) Discussion' started by fyexi, Jan 9, 2017.

  1. fyexi

    fyexi

    Joined:
    Jan 9, 2017
    Posts:
    2
    Hello. I have a problem. When I create a project for Android and i try build the game, I have a a few error.
    What should will I do?
    Link from game tutorial :


    Problem :
    Build and Run : http://screenshot.sh/owq2TWJw3Iuwn
    AndroidManifest.xml - http://screenshot.sh/n7Yw60W5TD7IH
    AndroidManifestCardboard.xml - http://screenshot.sh/m80xaic6q4hZB
    AndroidManifestDaydream.xml - http://screenshot.sh/odz8zP1hxvZxl
    Player Settings - http://screenshot.sh/oBFenuitk7rj3
    Folder\Assets\Plugins\Android - http://screenshot.sh/mMFXrCnBZ8z7Z

    I have no idea what i should do ...
    Plis help :)
     
  2. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    Can you copy and paste the actual error from the Unity console?
     
  3. fyexi

    fyexi

    Joined:
    Jan 9, 2017
    Posts:
    2
  4. Selzier

    Selzier

    Joined:
    Sep 23, 2014
    Posts:
    652
    GoogleVR version 1.10 is buggy and causes this. Use GoogleVR 1.03 and Unity 5.4.2 or 5.5. :
    https://github.com/googlevr/gvr-unity-sdk/commits/master

    (for a quick fix, you can try to delete all manifests except 'AndroidManifest-Cardboard')

    That's a really cool zombie game tutorial btw!

     
  5. davebuchhofer

    davebuchhofer

    Joined:
    Nov 9, 2007
    Posts:
    126
    I had a similar issue today, while trying to build for GearVR, while having the GVR sdk installed.

    If you check the error in the console, it will give you a hint as to what is going on. In my case, it was a GVR plugin with an internal manifest, that was failing to merge with my general GearVR manifest. As part of my build script for gear, I had to remove two of the GVR plugin files:

    Application.dataPath + "/Plugins/Android/unitygvractivity.aar"
    Application.dataPath + "/Plugins/Android/gvr-permissionsupport-release.aar"

    mileage may vary.