Well , I had the same problem before and what i did was i just right clicked the whole project folder and I refreshed and I found the id class regenerated in the R.java , Try that one .
On Mar 29, 12:17 pm, mnavlani <[email protected]> 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! -- 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 To unsubscribe, reply using "remove me" as the subject.

