small medium large xlarge

Generic-user-small
15 Jul 2013, 18:07
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

Generic-user-small
15 Jul 2013, 18:49
Anthony Shaw (138 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.

Generic-user-small
16 Jul 2013, 14:45
Prasad (4 posts)

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

Generic-user-small
16 Jul 2013, 15:15
Anthony Shaw (138 posts)

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

Generic-user-small
16 Jul 2013, 15:18
Prasad (4 posts)

yea did. R.java also gone

Generic-user-small
16 Jul 2013, 15:36
Anthony Shaw (138 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

Generic-user-small
19 Jul 2013, 16:17
Prasad (4 posts)

Ohk! Thank you Anthony Shaw.I will check it

  You must be logged in to comment