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

Can't build Google Tango demo scenes on 2017.2.0b9

Discussion in 'Android' started by Samssonart, Sep 6, 2017.

  1. Samssonart

    Samssonart

    Joined:
    Dec 14, 2011
    Posts:
    25
    Using 2017.2.0b9 with the new XR project settings to build the Tango demos on an Asus Zenfone AR. If I check the Tango enabled box in XR settings the build fails with this error:

    Code (CSharp):
    1. CommandInvokationFailure: Unable to convert classes into dex format.
    2. /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir="/Users/samssonart/Library/Android/sdk/tools" -Dfile.encoding=UTF8 -jar "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar" -
    3.  
    4. stderr[
    5. Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/atap/tango/TangoClientLibLoader;
    6. Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/atap/tango/TangoJNINative;
    7. Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/atap/tangohelperlib/BuildConfig;
    8. Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/atap/tangoservice/Tango;
    9. Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/atap/tangoservice/Tango$1;
    10. Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/atap/tangoservice/Tango$OnFrameAvailableListener;
    11. Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/atap/tangoservice/Tango$OnTangoUpdateListener;
    12. Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/atap/tangoservice/TangoAreaDescriptionMetaData;
    13. Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/atap/tangoservice/TangoAreaDescriptionMetaData$1;

    From what I understand it means that the Tango library is being added twice, but if I don't check the box the build finishes successfully but the app crashes on startup. Thoughts?
     
  2. guru20

    guru20

    Joined:
    Jul 30, 2013
    Posts:
    239
    Yep... the only way I was able to get it to work was to roll back to 5.6

    Then the demo/examples compile fine (I was able to mod one to create an AR demo / prototype)
     
  3. dienat

    dienat

    Joined:
    May 27, 2016
    Posts:
    417
    How did you do it with 5.6? I made a build but just shows a black screen in many of the scenes like the marker recognition scene, noone scene works