I've been trying to setup the Unity-Ouya plugin for the past 4 hours now. I'm currently stuck on this missing symbol error and I have absolutely no clue what to do. My guess is that the R class improperly set itself up and is missing a chunk of code.
EDIT: Answer on bottom of this OP.
----------------------------------------------------------------------
Class R:
/* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.williambakunis.demoderby;
public final class R {
public static final class attr {
}
public static final class drawable {
public static final int app_icon=0x7f020000;
public static final int ouya_icon=0x7f020001;
}
public static final class id {
public static final int mainLayout=0x7f050000;
public static final int unityLayout=0x7f050001;
}
public static final class layout {
public static final int main=0x7f030000;
}
public static final class string {
public static final int app_name=0x7f040000;
}
}
Error shown on Unity:
E:\Unity Projects\Games\Genres\racing\demoderby_ouya\Assets\Plugins\Android\src\OuyaUnityApplication.java:68: cannot find symbol
symbol : variable raw
location: class com.williambakunis.demoderby.R
InputStream inputStream = getResources().openRawResource(R.raw.key);
^
1 error
UnityEngine.Debug:LogError(Object)
OuyaPanel:CompileApplicationClasses() (at Assets/Ouya/SDK/Editor/OuyaPanel.cs:1169)
OuyaPanel:CompileApplicationJava() (at Assets/Ouya/SDK/Editor/OuyaPanel.cs:1270)
OuyaPanel:Update() (at Assets/Ouya/SDK/Editor/OuyaPanel.cs:862)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
----------------------------------------------------------------------
ANSWER:
I was able to fix this by re-importing all the Ouya-Plugins and recompiling the ID. For some reason one of the plugins was corrupted or maybe I accidentally messed with one of them. Now i'm noticing that Unity will not debug my game correctly. I'm being forced to build & run the game. I would like to just run it and be able to do quick edits. I can solve this on my own.
Comments
New Error:
EDIT: I'm unable to directly post the error on this comment. I created a .txt and added it to my dropbox. This will also keep the thread cleaner.
The error is telling me "Error building Player: CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details."
https://dl.dropboxusercontent.com/u/1015938/UnityError/dexformat.txt
------------------------------------------------------------------------------------
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].