Fixed the R issue

I can’t remember how I did it. Seriously, so many errors that I’ve just
tried to tidy up but it works as it is.

Most likely the wrong android.jar was included. Now that error is gone.