1. Check out our companion app, Forums for Android! Download from Google Play

Failed to get the adb version: Cannot run program.

Discussion in 'Application Development' started by OddHov, Oct 7, 2010.

  1. OddHov

    OddHov New Member
    Thread Starter
    5

    Oct 7, 2010
    1
    0
    5
    Hello everybody,

    I'm new to Android and new to this forum. I purchased a Samsung Galaxy a few weeks ago, and I'm very happy with it! I've begun developing my own stuff a few days ago.
    I first installed all the required software (JRE, Eclipse, SKD etc.) to my laptop, which went smoothless. I wanted to install the same software on my desktop pc, but that did not went so well.

    Everytime I want to open a Android-application-file in Eclipse, it gives the following error:

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

    I've searched the internet for sollutions, and found that one of the sollutions is to put the right path to the sdk-folder in the Android settings. I've got the following path:

    /home/sodenhoven/Program Files/android-sdk-linux_x86/

    I really don't know what to do anymore.
    Can somebody help me out?

    Cheers,
    Sammy
     

    Advertisement

  2. spark65

    spark65 New Member
    5

    Oct 10, 2010
    1
    0
    5
    Are you running 64 bit Linux? If so use getlibs - see here for a description of the problem. Type "getlibs adb" rather than aapt as suggested.
     
  3. ajay meher

    ajay meher New Member
    6

    May 9, 2011
    4
    1
    6
  4. twoHats

    twoHats New Member
    25

    Sep 8, 2011
    2
    0
    25
    NH, USA
    The solution from ajay meher works perfectly on Linux Mint 11 and eclipse Version: 3.5.2.

    When first starting with the entire system (eclipse, android, the plugin) it is a lot to get set up right! When you throw in 32 vs 64bit and trying to avoid closed language paths (Oracle) it gets crazy!! Thanks for recognising this and giving such a thorough description!
     
  5. The_app_main

    The_app_main Well-Known Member
    16

    Sep 10, 2011
    78
    1
    16
    Hi, I'm running windows and I had a similar error. I did a search and came across a fix that works for windows users. The SDK Location field in the preferences tab doesn't like spaces in the path. I originially had the file in the "c:\program files" directory and got the same error. You can either move the sdk folder to a path that doesn't have spaces or you can do like I did and specific the path as C:\PROGRA~1\
     

Share This Page

Loading...