Agree. Clean your project and rebuild it. See if you can see the R.java in /src/gen.
On Mar 30, 10:16 am, DonFrench <dcfre...@gmail.com> wrote: > Can you show us the contents of R.java. It is in the gen folder. > > On Mar 29, 3:17 am, mnavlani <monishanavl...@gmail.com> wrote: > > > > > thanks for your reply! > > > I used the following code in main.xml: > > > <?xml version=”1.0” encoding=”utf-8”?> > > <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/ > > android” > > android:orientation=”vertical” > > android:layout_width=”fill_parent” > > android:layout_height=”fill_parent”> > > <EditText > > android:id=...@+id/myEditText” > > android:layout_width=”fill_parent” > > android:layout_height=”wrap_content” > > android:text=”New To Do Item” > > /> > > <ListView > > android:id=...@+id/myListView” > > android:layout_width=”fill_parent” > > android:layout_height=”wrap_content” > > /> > > </LinearLayout> > > > and, in both the following lines(of the .java file),i get the error > > "R.id cannot be resolved": > > > ListView myListView = (ListView)findViewById(R.id.myListView); > > final EditText myEditText = > > (EditText)findViewById(R.id.myEditText); > > > please help regarding this!- Hide quoted text - > > - Show quoted text - -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.