My auto-refresh option under Preferences > General > Workspace > Refresh automatically wasn't on, turned it on (though instructions don't say you have to AFAICT). Didn't have any change-detection problems for about a day. But today had a change-detection problem again, this time had added new layout files, new Activity, changed some existing classes. Just got a NullPointerException in the LogCat on some line in an extended TextView, but none of the new layouts is using that textview. Checked that in R.java the newly created layouts do exist. The first activity+view that the app uses at startup don't even use that extended TextView!
The exact exception: 04-15 12:20:45.943: ERROR/AndroidRuntime(1018): java.lang.NullPointerException <removed extended TextView stacktrace lines) 04-15 12:20:45.943: ERROR/AndroidRuntime(1018): at android.view.View.measure(View.java:7964) 04-15 12:20:45.943: ERROR/AndroidRuntime(1018): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3023) 04-15 12:20:45.943: ERROR/AndroidRuntime(1018): at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java: 888) 04-15 12:20:45.943: ERROR/AndroidRuntime(1018): at android.widget.LinearLayout.measureVertical(LinearLayout.java:350) 04-15 12:20:45.943: ERROR/AndroidRuntime(1018): at android.widget.LinearLayout.onMeasure(LinearLayout.java:278) 04-15 12:20:45.943: ERROR/AndroidRuntime(1018): at android.view.View.measure(View.java:7964) 04-15 12:20:45.943: ERROR/AndroidRuntime(1018): at android.widget.ScrollView.measureChildWithMargins(ScrollView.java:893) 04-15 12:20:45.943: ERROR/AndroidRuntime(1018): at android.widget.FrameLayout.onMeasure(FrameLayout.java:245) ....... <more deleted> No errors in the Eclipse workspace log (in <my_path>/ workspace/.metadata/.log). Did a refresh on the source tree, ran as Android app. Same exception again; logical, the console says there was no need to reinstall. Then did a Project > Clean > Clean selected projects below. App runs starts fine now. So something seems to be unable to keep track of certain XML changes in certain cases... I can't consistently reproduce. Just tried to do the same things again (new xml, activity that uses that one) but app starts up fine. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

