Page 1 of 1

Android build error - Resource ID not found

Posted: 26 Aug 2014, 15:54
by tr4np
I recently bought NoesisGUI, and I created a simple .xaml file in Blend along with a new Unity project to load it. It works fine when I play it in the editor, but it crashes when I try to run it on an Android device. The log shows:
08-26 07:22:42.258: E/Noesis(27981): NS_ERROR: [ANDROID] Resource ID for 'Unity/Unity/gui/UserControl1.xaml' not found
In Unity, that file is located in the "gui" directory under the main Assets folder. It looks like the resource ID should be 'Unity/Assets/gui/...' instead (or possibly just 'Assets/gui/...').

I'm running the latest version (v1.1.10) with Unity 4.5.3. Am I missing something simple?

thanks,
Phong

Re: Android build error - Resource ID not found

Posted: 26 Aug 2014, 16:07
by sfernandez
Probably you forgot to build resources for the Android platform.

If you take a look at the First Steps with NoesisGUI in Unity, the section Configuring NoesisGUI talks about NoesisGUI Settings window, where you can select the platforms that will be built when generating a standalone. And in the section Building on Android (1. Optimize deployed data) we explain how to optimize the the size of the standalone by including only the resources built for the Android platform.

We want to improve this for a future release, to make this process automatic.

Re: Android build error - Resource ID not found

Posted: 26 Aug 2014, 16:27
by tr4np
You're right! I had not checked the Android box in the NoesisGUI settings. Thanks for the quick response!

Re: Android build error - Resource ID not found

Posted: 26 Aug 2014, 17:07
by jsantos
I recently bought NoesisGUI
Remember to verify your account.
Thanks!