Search Unity

Google ARCore and carboard combine gives build failure issue

Discussion in 'AR/VR (XR) Discussion' started by Rbhaniwal, Mar 16, 2018.

  1. Rbhaniwal

    Rbhaniwal

    Joined:
    Jan 23, 2015
    Posts:
    33
    i am using AR core in my unity app. Its working great but when i add google cardboard sdk with AR core sdk it gaves me build failure issue. Both working fine seprately but combined gaves build failure issue.

    Any solution ???
     

    Attached Files:

  2. Rbhaniwal

    Rbhaniwal

    Joined:
    Jan 23, 2015
    Posts:
    33
    I chose arcore_client.aar from ARCore. And then (there must be an easier way to do this) :
    1. rename arcore_client.aar to arcore_client.zip
    2. look at arcore_client.zip in Windows explorer and find the classes.jar file inside.
    3. Copy classes.jar out of the zip
    4. Rename classes.jar to classes.zip
    5. Look inside classes.zip in Windows explorer for the above package and delete the .class files (I had 3 of them)
    6. Rename classes.zip to classes.jar
    7. Copy back into arclient_core.zip
    8. Rename arclient_core.zip to arclient_core.aar
    9. Copy back to the ARCore asset folder where you found it.
    10. That should give you a working build

      This works for me.
     
    LeventCey likes this.
  3. LeventCey

    LeventCey

    Joined:
    Jan 10, 2017
    Posts:
    2
    Thank you very much.