Android Emulator Worked after a lot of hard work

It was most awaited thing to see the app running on the emulator of Eclipse (worked from 6pm and I could resolve the errors and see the app running at 2:53 am ).

I used Android Studio initially for the developing. It is very easy to work with as it involves dragging of the widgets when it comes to front-end development.

Later I switched to Eclipse.In Android Studio when you click on RUN button it runs the emulator without running the app even though your code may contain errors. But in Eclipse it is opposite it runs the app on the emulator only when the errors are fixed.



                                                          

Most common complaint : "R cannot be resolved to a variable"


Here are couple of things to do to get rid of this annoying error:

i)   You must right click on your project name
ii)  Go to Properties
iii) Select Android , and check the Android v.x   (v & x are integers)
iv) Next select JavaBuild Path check the Android v.x   (v & x are integers)
v)  Close the Properties window and open the Project menu and click on Clean... and next
     Build.

                                               Man !! It is not yet resolved:


Careless thing is that we don't check the package name in the AndroidManifest.xml and the android:attribute values. Make the appropriate changes and you can run your app if "R cannot be resolved to a variable" is the only error 

Comments