if you're using eclipse.... sometimes the eclipse android plugin sticks in an import to android.R - it does for me every now and then, and then it of course doesn't know what my id's are
or there could be an issue with your xml, which the plugin should be telling you about On Fri, Jun 3, 2011 at 11:37 AM, Matthew <[email protected]> wrote: > Hey, got a little problem while developing my project. > > I`ve got some code running well, with some views in an activity but > then I tried to add another Button in code (with onClickListener > etc.) and in the graphical main.xml view. > > Code was okay, but the "Id" of the new button could not be resolved... > i thought it would be an typical writing mistake or something like > that, but also after some trying the Id wont be work. So i finaly > changed the code back to the last known working version, but now I > have still problems with all other Views ID`s, there all cant be > resolved even the > > setContentView(R.layout.main); > > command of the onCreate() method... (main is underlined red and > eclipse tells that "main could not be resolved or is not a field") > > (refresh project, restart did also not work) > > I tried to create an new project as a test, same problem in the auto > created sourcecode. > > So finaly i think that i accidential changed something in the Eclipse > IDE.. but i dont have anm Idea what to do... can anyone help? > > thanks > > -- > 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 -- 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

