15 Jul 2013, 18:07
Generic-user-small

Prasad (4 posts)

In topic 7.1 Browsing by Intent, I’m gettin error in java file as : R.id.go_button can not be resolved or not a field. R.id.url_field can not be resolved or not a field.

Did clean Project.Din’t work. android:id=”@+id/go_button” Line is present.Please help

15 Jul 2013, 18:49
Generic-user-small

Anthony Shaw (132 posts)

There are probably build errors in one of your xml files. Check the problems tab near the bottom of the screen to see if any were reported when you did the clean.

16 Jul 2013, 14:45
Generic-user-small

Prasad (4 posts)

In problems tab also same errors are indicated: R can not be resolved to a variable

16 Jul 2013, 15:15
Generic-user-small

Anthony Shaw (132 posts)

Look for any ‘import android.R’ lines in your java source code, delete them, then run clean again.

16 Jul 2013, 15:18
Generic-user-small

Prasad (4 posts)

yea did. R.java also gone

16 Jul 2013, 15:36
Generic-user-small

Anthony Shaw (132 posts)

Then there must be a problem in one of your xml files somewhere. The probelms tab should be saying at least what file the problem is in

19 Jul 2013, 16:17
Generic-user-small

Prasad (4 posts)

Ohk! Thank you Anthony Shaw.I will check it

  You must be logged in to comment