Friday, 27 May 2011

Failed to get the adb version: Cannot run program "/home/ajay/devtools/android/android-sdk-linux_x86/tools/adb": java.io.IOException: error=2, No such file or directory solved

Please follow these steps to setup your Eclipse and Android for both 32 and 64 bit systems(both for Windows 7 and Ubuntu 11.04 natty and less than that)


Step 1: Find in search area in Ubuntu Software Center as follows.
            sun-java6-jdk, sun-java6-jre, sun-java6-bin, sun-java6-source
           
If all these not found then please issue these following commands accordingly,


sudo add-apt-repository "deb http://archive.canonical.com/ 
lucid partner"

sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin
sudo apt-get install sun-java6-bin 
sudo apt-get install sun-java6-jdk
 
------------------------------------------------------------------------------------
Note: when package is downloaded completely it asks for the agreement to accept. 
please use "left-right" enter button to select those options( for beginners only)
------------------------------------------------------------------------------------ 
 
sudo apt-get install ia32-libs(Must get installed for amd64 and other 64 bit systems)
 
After all installation please configure your default java as follows for
 " /usr/lib/jvm/java-6-sun/jre/bin/java " by issuing the following command 
and select as given above by giving a number when it ask.
(this is only required for those who have already installed open-jdk

 sudo update-alternatives --config java 
 

 For 32-bit systems please download Eclipse-32 bit 
 
 http://www.eclipse.org/downloads/
  
Eclipse IDE for Java EE Developers, 205 MB      
(Select 32-bit download there)

Unzip it and change the properties-permissions of "eclipse" to read-write(all)
and tick on executable.
Double-click on it and start configuring your android
"If not configured properly please find it in my configure-android-eclipse
properly post".

For those who are getting error: adb not found or no directory or executables
found error.

Copy ../android/platform-tools/adb to your /tools/ folder

Then restart your eclipse and again try to re-create your adb.

Can not Create SD Card Error
-----------------------------------
Check whether you kept your android sdk in "/home/user_name/" or not.
 please keep it there otherwise. 
 
If your Error Code 13 is showing then You might be using a
 64-bit system and trying to use Eclipse of 32-bit. Because of which it is giving error code 13
 
 Failed to get the adb version: Cannot run program "
/home/ajay/Android/Android SDK/ android-sdk-linux_x86/
platform-tools/adb":java.io.IOException: error=13, Permission denied
 
 For 64-bit systems please download Eclipse 64 versions 
  and configure it as earlier with android.. 
 
 Please,
           Let me know if not working ..(Tested in 3.5.2 and Ubuntu 11.04)
 
Ajay Kumar Meher
  (Freshers Lab)