Hi guys, so I've been playing with my Ouya for a few days and decided to finally try and build out a project to it. Took a little while to get all of the kits necessary (I've never built out for Android) and everything seems to be working (no paths are greyed out) and when I press Compile (or compile all three separately) I don't receive any errors.
However, when I go to build, the project asks for the Android directory, and when pointed to either r22 or r21 outputs this error:
Error building Player: Exception: android (invokation failed)
ERROR: unknown error
cmd:android list target -c
stdout;
Error occurred during initialization of VM
java.lang.UnsatisfiedLinkError: sun.reflect.Reflection.getCallerClass(I)Ljava/lang/Class;
at sun.reflect.Reflection.getCallerClass(Native Method)
at sun.misc.Unsafe.getUnsafe(Unknown Source)
at java.util.Hashtable.<clinit>(Unknown Source)
at java.lang.System.initializeSystemClass(Unknown Source)
stderr:
I've searched up the error and found some people referring to downgrading to r21 and having that fix the issue, which is why I have both installed, but that hasn't helped for me. I'm honestly not sure if this is a problem with the licenses or the ODK but I thought I'd get some feedback incase any of you have come across this before.
I have the following on my computer:
Unity4.1.3f3
JDK 1.6
JDK 1.7 (Separate Install)
Android SDK r22 with API 16 & 17
Android SDK r21 (Separate Install) with API 16
Android NDK r8e
I've also tried adding paths to my environmental variables as per somebody elses fix, but that did nothing so I removed them.
Any ideas for how I might fix this? I'd really like to test out this apk on my Ouya but I'll need to get back to dev work soon and won't have time to mess with the Ouya again for a little while, so I'd be nice to get something out of the day.
Comments
OUYA Inc | Android Developer
Skype: tgraupmann_prey
http://github.com/ouya/docs
http://github.com/ouya/ouya-sdk-examples
Check out the latest docs for your game engine: [setup] [adobe air] [android] [clickteam fusion] [construct 2] [corona] [libGDX] [game maker] [html5] [marmalade] [monogame] [unity] [unreal]
Use caution when setting [persistent wireless mode].
OUYA Inc | Android Developer
Skype: tgraupmann_prey
http://github.com/ouya/docs
http://github.com/ouya/ouya-sdk-examples
Check out the latest docs for your game engine: [setup] [adobe air] [android] [clickteam fusion] [construct 2] [corona] [libGDX] [game maker] [html5] [marmalade] [monogame] [unity] [unreal]
Use caution when setting [persistent wireless mode].