You only posted a part of HelloAndroidTest, which makes it difficult to diagnose your problem.
Ensure that you've followed the instructions. Do the Hello, World tutorial first, so that you have a HelloAndroid project. Once that's done, do Hello, Testing. Be sure to create it as a test project. Also check your dependencies. HelloAndroidTest has to have the HelloAndroid project on its build path. To check this, in Eclipse right-click the HelloAndroidTest node and select Properties at the bottom of the menu. In the Properties box, click Java Build Path, and then click the Project tab on the right. You should see HelloAndroid as one of the required projects on the build path. Hope this helps. Joe Malin -------------- Please note: Because of the volume, I'm unable to respond to direct e- mails. Please post your questions to the group. On Sep 19, 3:55 am, Kieu Hua <[email protected]> wrote: > There is compile error in HelloAndroidTest program in the Tutorials > “Hello Testing” program, because I got this compile error. > “com.example.helloandroid.R.id.textview can not be resolved.” > > @Override > protected void setUp() throws Exception { > super.setUp(); > mActivity = this.getActivity(); > mView = (TextView) > mActivity.findViewById(com.example.helloandroid.R.id.textview); > resourceString = > mActivity.getString(com.example.helloandroid.R.string.hello); > } > > My com.example.helloandroid.R doesn’t have R.id.textview, and > endroid.R.id class does not have endroid.R.id.textview field. > > Where do I support to get this field, > “com.example.helloandroid.R.id.textview”? > > Thank for helping. > -- > Kieu Hua > [email protected] > 77 Strawberry Hill Road > Acton, MA 01720 -- 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

