I'm not sure if this is related to the error message im getting but..
I recently updated Android SDK Platform tools from the Android SDK Manager, and setup the ODK in unity (downloaded from here https://devs.ouya.tv/developers/odk).
then I click the compile button and get an error. (pictures below)
The aapt.exe file is missing from android-sdk\platform-tools. looks like the latest android sdk update moved it to android-sdk\build-tools\17.0.0
Ok I just updated the path (also had to update the NDK path to android-ndk-r8e\prebuilt\windows\bin\make.exe), and it found it all just fine but i'm still getting the same error message.
I have JDK 6 installed, Android SDK is up to date with the fixed path, and NDK r8e. The minimum API Level is set to API Level 14.
also if it helps im running Window XP Professional SP3
The error is because you set the minSDK version to 14 instead of 16. Set to the higher version and it will compile. Otherwise you have to remove the controller connection listener from the application java.
that helped a little (it didn't ask me where the SDK was) but I'm still getting the no platforms found message. so... I tried it again and retraced my steps. It asked me where the SDK was again and looks like every time I click "Build and Run Application" it erases the path to the SDK in unity's preferences. (tried multiple times to confirm that).
It did however give me an error that I just noticed and forgot to mention earlier.
I'm running version 4 of unity, and JDK 6 32-bit downloaded from here (www.oracle.com/technetwork/java/javase/downloads/jdk6downloads-1902814.html#jdk-6u45-oth-JPR)
Error building Player: Exception: android (invokation failed)
ERROR: unknown error
cmd:android list target -c
stdout;
stderr:
Exception in thread "main" java.lang.NullPointerException
at SDKMain.main(SDKMain.java:62)
I have JDK 6 32 bit installed (as used in the OUYA tab) and the NDK and ADK
Unity 4.x (Cause of the Android License )
I tried upgrading to the latest ODK and I am seeing the same error message today. It looks like it is not certain where the android sdk location is, although it seems to be set correctly in the Ouya Panel.
If it helps any, here is the file I edited that fixed the first few errors I had with the ouya panel not finding the aapt.exe. It also fixes the NDK path to the make.exe.
I guess that downloading "17" was the issue. I am going to try completely uninstalling my android sdk, then reinstalling it taking care to only install "16".
This didn't work -- the latest version of the Android SDK manager changes the paths. Well, it downloads parts of 17. I guess that changing the paths in OuyaPanel.cs as rubix has done is the simplest route.
I guess that downloading "17" was the issue. I am going to try completely uninstalling my android sdk, then reinstalling it taking care to only install "16".
apparently the new Android SDK Tools really messed things up with Unity finding the android sdk, this link got mine to start working. Why not give it a whirl.
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].
I have JDK 6 installed, Android SDK is up to date with the fixed path, and NDK r8e. The minimum API Level is set to API Level 14.
also if it helps im running Window XP Professional SP3
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].
then once i locate it, this is what it does.
here is what I have installed
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].
It did however give me an error that I just noticed and forgot to mention earlier.
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].
goes here: Assets\Ouya\SDK\Editor (right click, save as)
https://dl.dropboxusercontent.com/u/61346292/OUYA/misc/OuyaPanel.cs
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].