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

2013-05-21 Thread plnelson
PS - This bug was driving me crazy.I'll be at AndDevCon next week in Boston, so Bob, if by any chance you'll be there I'll buy you a beer. -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andr

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

2013-05-21 Thread plnelson
* 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

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

2013-05-21 Thread plnelson
There's no activity at all in the Console window during the clean and build. Only after I right-click on the target device (a tablet) and do a debug as... do I get console output (proprietary company and product names obfuscated) [2013-05-21 13:02:50 - TheProduct]

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

2013-05-21 Thread bob
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 * Th

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

2013-05-21 Thread Piren
Just to be sure... open the Eclipse Console and do a Clean on the project.. see if there are any errors showing during the build (these do not show in the Problems view) Sometimes something very stupid (like having capital letters in resource names) causes the entire build to fail, but the proje

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

2013-05-21 Thread plnelson
On Monday, May 20, 2013 5:48:03 PM UTC-4, Jonathan S wrote: > > clean remove all gen and bin folders. > As I said in my OP did deleted the gen folder. I also deleted the bin folder. Everything has been cleaned and rebuilt. > > Would you post all stacktrace for this exceptions? > Here's

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

2013-05-21 Thread plnelson
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 i

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

2013-05-20 Thread Jonathan S
clean remove all gen and bin folders. Would you post all stacktrace for this exceptions? On Monday, May 20, 2013 4:35:24 PM UTC-4, 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,

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

2013-05-20 Thread bob
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 j

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

2013-05-20 Thread plnelson
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

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

2013-05-20 Thread plnelson
Just an update: to simplify things further I replaced the layout file with a default layout file ("foo.xml") that you get when you have Eclipse generate a new layout file for you: http://schemas.android.com/apk/res/android"; android:layout_width="match_parent" android:layout_height="ma

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

2013-05-20 Thread Jonathan S
how about ant clean build On Monday, May 20, 2013 12:20:02 PM UTC-4, plnelson wrote: > > There are lots of Resources$NotFoundException questions on the web and > I've reviewed them and tried the various suggestions to no avail. > > I had a perfectly working layout to display some graphics with so