Tuesday, May 21, 2013

[android-developers] Re: Another Resources.NotFoundException with setContentView()


 BINGO!
The missing layout file was in the wrong res folder.   This app runs on a tablet and is constrained to run in landscape only so everything is supposed to be in layout-land but the missing file was in a different res folder.

Thank you!

( is there a point system on this forum where we can give answers or posters props, like they have on Stack Overflow? )


On Tuesday, May 21, 2013 10:47:53 AM UTC-4, bob wrote:
I bet it is looking for the resource in a directory called "layout-somethingweird", and it's not there.

What are the names of all your folders that start with layout?  Do they all contain the resource in question?

For instance, you might say:

layout-large
layout-small
layout-medium  

Thanks.


On Tuesday, May 21, 2013 8:15:10 AM UTC-5, plnelson wrote:
I don't expect it to be reproducible unless you had my entire project and all its settings.   This is a large (~20 Activities) industrial-control app.   Think of the question as "How do I debug a Resources.NotFoundException?"   or "What EXACTLY does a Resources.NotFoundException mean?"
My IDE is Eclipse Indigo.

On Monday, May 20, 2013 4:43:48 PM UTC-4, bob wrote:
I cannot reproduce the error you are getting.  What IDE are you using?

Thanks.


On Monday, May 20, 2013 3:35:24 PM UTC-5, plnelson wrote:


On Monday, May 20, 2013 4:26:05 PM UTC-4, Jonathan S wrote:
how about ant clean build

This isn't an ant-based project, and anyway, ant is just supposed to emulate the regular IDE so why  whould it be any better than what I've already tried?    What does it do in a clean and build that's different/better for a problem like this? 

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment