Everything compiles, Exception: dx (invokation failed)

CMG_SkylerCMG_Skyler Posts: 4Member
I cant seem to get a "build and run" out of unity for the life of me. It seems that I've got everything set up correctly, and compiling Java, NDK, and everything like that works without error. When I try to "build and run" I get "Error building Player : Exception: dx (invokation failed). I have the Android NDK installed at the root of my Mac HDD, and the ODK and Android SDK installed in the USERS\MyName\ folder. I am trying to build and run the controller example scene. Using the default bundle identifier as "tv.ouya.demo.OuyaUnityApplication" but cant seem to get a successful build. Where could I be going wrong? 

Comments

  • Voporak5Voporak5 Posts: 73Member
    Try throwing your NDK folder inside of the Android SDK. And then make another folder to hold your Java, Eclipse (if you have that), and Android SDK with your NDK inside. It might help.
  • CMG_SkylerCMG_Skyler Posts: 4Member
    Thanks Voporak5, but that doesn't seem to make a difference. I've followed the videos and instructions perfectly, over and over, no idea what I am doing wrong here.
  • Voporak5Voporak5 Posts: 73Member
    Oooooh, try renaming your bundle identifiers, com.Name.Product, maybe its set to not build as a default if the bundle identifier isn't changed. Also, did you download the latest ODK from Github?

    If not go here http://www.sourcetreeapp.com/ and download that and  plug http://github.com/ouya/ouya-unity-plugin that url into where you want to download your code from. It's super easy, copy and paste the url and it does everything for you.
  • Voporak5Voporak5 Posts: 73Member
    http://answers.unity3d.com/questions/461115/android-build-fails-with-unknown-reason-after-upgr.html

    I found another forum post having a similar problem, I don't know if it's the same. You can try this link too.
  • CMG_SkylerCMG_Skyler Posts: 4Member
    edited May 2013
    Wow, that seems to have done it! Swapped out the bundle identifier name to com.companyname.product name in each spot and unity FINALLY pushed an apk to my ouya. Thanks so much Voporak5.
    Post edited by CMG_Skyler on
  • Voporak5Voporak5 Posts: 73Member
    Yea no problem =D
Sign In or Register to comment.