[Solved]OuyaUnityApplication symbol missing.

wbakuniswbakunis Sandisfield, MAPosts: 6Member
edited August 2013 in Unity on OUYA
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.

Post edited by wbakunis on

Comments

Sign In or Register to comment.