@Donald @wreed I set those environmental as System-wide environmental variables. and it works now.
Previously I didn't set the environmental variable(ANDROID_HOME) as system-wide variable, that is the reason why the ANDROID_HOME variable is invisible in Eclipse Environment settings.
To set the ANDROID_HOME as System-wide environmental variable, I have used the following commands in terminal and some settings in Eclipse.
Terminal:
- Run sudo nano /etc/launchd.conf
- Add setenv ANDROID_HOME /Users/selvakumar/Documents/android-sdk-macosx
- Then either restart or run launchctl < /etc/launchd.conf; sudo launchctl < /etc/launchd.conf
Eclipse:
Then the variable becomes visible in the Eclipse--> Run Configurations--> Environment -->Select-->ANDROID_HOME then I checked the ANDROID_HOME variable and click apply. Run the code with your new Run configuration settings. That made my code to work.
@kasperavi Thanks Avinash! Let me check with your idea too..
Thanks a lot to everyone! The big show came to an end
