Could not find adb.exe - after upgrade to Android SDK 2.3

后端 未结 18 1137
自闭症患者
自闭症患者 2020-12-14 05:57

I have upgraded my Android SDK to version 2.3 and Android Development Tools 8.0.0. Now in Eclipse, I get an error message:

Could not find C:\\Program

相关标签:
18条回答
  • 2020-12-14 06:51

    You need to update the PATH to reflect ADB located in "Platform-Tools" now.

    On Mac OS X, open up your terminal and add the following line to your .bash_profile:

    export PATH=${PATH}:/Users/yourname/Library/android-sdk/tools:/Users/yourname/Library/android-sdk/platform-tools:
    

    Your .bash_profile is located at

    ~/.bash_profile
    
    0 讨论(0)
  • 2020-12-14 06:51

    Call me silly, but if you just read the SDK\ Readme.txt

    $ cat SDK\ Readme.txt
    Welcome to the Android SDK!

    The Android SDK archive now only contains the tools. It no longer comes populated with a specific Android platform or Google add-on. Instead you use the SDK Manager to install or update SDK components such as platforms, tools, add-ons, and documentation.

    In order to start developing applications, you must install at least one version of the Android platform using the SDK Manager.

    This requires an Internet connection, so if you plan to use the SDK offline, please make sure to download the necessary components while online.

    To start the SDK Manager, please execute the program "tools/android".

    From the command-line you can also directly trigger an update by executing: tools/android update sdk

    For more information, please consult the Android web site at http://developer.android.com

    I'm tired now, I must rest --- that drained me of all my energy.

    0 讨论(0)
  • 2020-12-14 06:54

    I had the same issue after installing the 2.3 SDK, updating the Eclipse ADT Plugin solved the issue. Older ADT plugins were still referring to SDK/tools folder.

    (I am using JDK 1.6, Eclipse Galileo SR2)

    Please not that including adb.exe path in the environment PATH variable is only necessary for accessing adb through command line.

    I followed the following steps - and have a working environment on both MAC and Windows:

    1. I have the path to tools as well as platform-tools in the Android sdk folder set as so:

      • Appended to PATH in .bashrc and (I have everything referenced from .bash_profile) (MAC)
      • Appended to PATH environment system variable (Windows)
    2. Unzipped SDK to /Developer/SDKs (Mac) and in D: on windows (after having it in C: earlier an losing everything in a crash :)) - for windows one can use the executable provided by Google.

    3. Install the Android Repositories and Add-ons (for Google API)

      • Go to bash prompt (by clicking on Terminal in Utilities) and type android (this will open the AVD and SDK Manager (Mac)
      • Click on Setup.exe inside the SDK folder (Windows)
      • Select Available packages on left pane. -Open Third party add-ons and check on Google Inc for Google APIs. (I personally have unchecked everything obsolete, to add in the future IF needed)
      • Click on Install Selected.
    4. Create AVDs

      • Again bring up the AVD and SDK Manager as in the earlier step
      • Click on Virtual Devices on left pane.
      • Name: AVD_2.3 for level 9, 1024 MiB and click OK AVD_2.3_GA for level 9 Google API, 1024 MiB and click OK. And so on for the other levels
    5. Update Eclipse ADT Plugin

      • Go to Eclipse ->Help->Install New Software->Link of available software, and select on the Android Plugin choices and Click on Update..(this is extremely important, otherwise you will get the error of adb not found in the next step.
    6. Specify Android SDK Location in Eclipse

      • Select Eclipse Preferences->Android (MAC)
      • Select Windows->Preferences->Android (Windows)
      • Browse to the path to the SDK folder (not the tools or any other folder) and click OK. Now you MUST NOT get the adb error :) If you have done everything right you should see all the AVDs, if you do not see it, close the dialog and open it again, you MUST see all AVDs which you created in step 3.
    0 讨论(0)
  • 2020-12-14 06:55

    I simply did "Help" -> "Check for uppdates" in Eclipse. Then I checked every update possible (I had 2) accepted, waited for the updates to complete, restarted Eclipse and then everything was fixed!

    I had some new build errors after the update, though, saying something like:

    error: Multiple substitutions specified in non-positional format; did you mean to add the formatted="false" attribute

    I won't explain the solution to that problem since this post isn't about it! However; the solution to that problem can be found in the Google Groups group Android Developers post, SDK 2.3: Get "Multiple substitutions specified in non-positional format" error.

    0 讨论(0)
  • 2020-12-14 06:55

    This solved my problem which was that even though I pointed the folder path at my platform-tools directory (which contained the adb.exe), it wouldn't enable the OK/Apply button. I thought I had installed the ADT plug-in (I installed something) but apparently not the right thing.

    Go here and follow these instructions: http://developer.android.com/sdk/eclipse-adt.html

    0 讨论(0)
  • 2020-12-14 06:57

    My adb.exe was missing. So I uninstalled the Android 2.3 SDK and installed it again. Now I have an adb.exe and it works better. My first installation most have failed without prompting it for me.

    0 讨论(0)
提交回复
热议问题