Friday, August 1, 2014

r cannot be resolved to a variable android - error

It's a very simple problem in android, just two steps. Please follow the bellow steps:

Step 1:
Go to the properties of your project and click Java Build Path with Order and Export like:




Step 2:
Then select Android option and ok like:



Now Build your project then R.java file will be generated in your gen package and problem will be solved.


Thank you.
Allah Hafez.




2 comments:

  1. N8ce one. Plz put everything in step by step order. Like how to start developing android in mac

    ReplyDelete
    Replies
    1. Thank you Ullah for your suggestion. I write whatever I face problem. Hopefully I will do this type of works.

      Delete