Tuesday, May 21, 2013

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

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] ------------------------------
[2013-05-21 13:02:50 - TheProduct] Android Launch!
[2013-05-21 13:02:50 - TheProduct] adb is running normally.
[2013-05-21 13:02:50 - TheProduct] Performing com.xxx.yyy.ZzzActivity activity launch
[2013-05-21 13:02:55 - TheProduct] Uploading TheProduct.apk onto device '43C714440E0F2D7'
[2013-05-21 13:02:55 - TheProduct] Installing TheProduct.apk...
[2013-05-21 13:02:57 - TheProduct] Success!
...
Is there some setting I have to use for the console to see stuff during the clean and build?

I really think that the right way to debug this is with an eye to what Resource$NotFoundException really means.   Does it mean the resource is not in the APK file or that the it somehow has a different ID at runtime than what's in the R.java file, or what?    The only relevant error in logcat says

05-21 12:47:00.060: W/ResourceType(4801): Failure getting entry for 0x7f030006 (t=2 e=6) in package 0 (error -75)

What's a -75? 

On Tuesday, May 21, 2013 10:36:50 AM UTC-4, Piren wrote:
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 project to still compile and run (with incorrect resources).

--
--
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