While running the code it shows a alert
Errors occurred during the build Errors running builder \'Android Package Builder\' on project \'Tes
your code might has been compiled with Java Higher version(i.e. 8), while you are trying to run it with Java Lower version(i.e. 7). Note that Eclipse has it's own compiler and does not use the one from the JDK and most probably it is configured to use Java Higher version(i.e. 8). Check you eclipse compiler preferences.