Connection with adb was interrupted You may want to manually restart adb from the Devices view

后端 未结 7 1514
逝去的感伤
逝去的感伤 2021-02-06 11:01

I am using Windows 7 and JDK 6.

I downloaded the package of Android SDK with Eclipse and followed the instructions to create the first Hello World application.

H

相关标签:
7条回答
  • 2021-02-06 11:27

    Me too had the similar problem. Struggled alot to resolve and finally this worked out for me.

    1. Remove all the folders in the root folder of workspace(except workspace folder) like .android, .eclipse, .metadata etc

    2. Save your platfoms to some safer place and delete the folder "adt-bundle-windows-x86-20130729"

    3. Unzip the bundle again to some other locations

    4. Try running the eclipse again and create an application

    5. Run the application and see whether emulator automatically gets starting

    6. Paste back ur platforms

    This worked for me on my 4th attempt.

    0 讨论(0)
  • 2021-02-06 11:28

    I did some thing very simple.. I copied the adb.exe from users folder (users//android-sdks/platform-tools to tools folder under android-sdks.

    Then in preferences under Android i clicked "restore Defaults" then again browsed back to C:\Users\\android-sdks then clicked on the latest API (19) clicked ok..

    then it worked!!

    0 讨论(0)
  • 2021-02-06 11:31

    Here are followed list of options what you can do to try to fix that issue:

    • Run: adb kill-Server , after adb start-Server
    • Try to disable and after set enable USB debugging on device. While doing that pulling out the USB cable and putting it back in also helps.
    • Just wait, sometimes it happens if it up slowly and Eclipse drop this error.
    • Try to kill adb.exe through Task Manager. It will restart by different way.
    • You can try to up performance to your Eclipse (mostly for Android):

      open eclipse.ini and set:

       -Xms128m        
       -Xmx512m         
       -XX:MaxPermSize=256m`
      
    • try to disable firewall

    • Uninstall previous versions of JRE or JDK (if you have ones in additional to new that you currently use). After, restart Eclipse
    • Does DDMS see your emulator? Try to restart adb through DDMS
    • Also add (if still you didn't) ADB to global path: My Computer -> Properties -> Advanced System settings -> Environment Variables -> press New... name: ADB; value: <your android SDK path>\platform-tools. after add to path %ADB%
    0 讨论(0)
  • 2021-02-06 11:37

    Expanding on Dejel's answer above with one change:

    1. Window -> Open Perspective -> DDMS (DDMS could be in the "Other..." section)
    2. Window -> Show View -> Devices (if not already visible on the left pane)
    3. Under the view-meny (little downward-pointing triangle on "Devices" header) choose "Reset adb" (Restart may have been renamed to "reset" in newer versions).
    0 讨论(0)
  • 2021-02-06 11:46

    This worked for me:

    simply go to device manager in your laptop or pc -> go to processes -> click on adb and -> click on end process.

    Now go to sdk folder (it may be locate various location in your drive) and right click on adb.exe and click run as administrator.

    Now check if it works fine.

    0 讨论(0)
  • 2021-02-06 11:47

    This always works for me. Follow these steps :-

    1. Close Eclipse.
    2. Kill adb.exe from Task Manager (Windows Only)
    3. Disconnect your device.
    4. Reconnect your device.
    5. Start Eclipse and Wait for Eclipse to build workspace.

    P.S. This works perfectly on a Physical Device. I haven't tried it on Emulator.

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