tr4np
Topic Author
Posts: 17
Joined: 26 Aug 2014, 15:33

Android build error - Resource ID not found

26 Aug 2014, 15:54

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
 
User avatar
sfernandez
Site Admin
Posts: 2991
Joined: 22 Dec 2011, 19:20

Re: Android build error - Resource ID not found

26 Aug 2014, 16:07

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.
 
tr4np
Topic Author
Posts: 17
Joined: 26 Aug 2014, 15:33

Re: Android build error - Resource ID not found

26 Aug 2014, 16:27

You're right! I had not checked the Android box in the NoesisGUI settings. Thanks for the quick response!
 
User avatar
jsantos
Site Admin
Posts: 3918
Joined: 20 Jan 2012, 17:18
Contact:

Re: Android build error - Resource ID not found

26 Aug 2014, 17:07

I recently bought NoesisGUI
Remember to verify your account.
Thanks!

Who is online

Users browsing this forum: Ahrefs [Bot], MaskARRA and 22 guests