- Ошибка: остановка сервера ADB с ошибкой (код -1) Я нахожусь в процессе загрузки и установки последних изображений Android API и System при недавней установке Android SDK. Загружая API, я быстро встретил ошибку в установке. Не удалось остановить сервер ADB (код -1). Мне любопытно, это повлияет на результат установки? В нем говорится, что он установлен, и он продолжался до следующего API, так ли это повлияло на это? Я предполагаю, что это произошло, потому что сейчас я загружаю API через Android-устройство Tethered Android, которое действительно зависит от ADB для привязки к компьютеру. Поэтому, если бы он остановился, это отменило бы загрузку, что сделало бы установку невозможной в любом случае. Итак, главный вопрос заключается в том, повлияет ли это на установку, не будучи в состоянии остановить ADB при установке и загрузке API. И если это повлияет на установку, не могли бы я просто следить за ссылками, перечисленными для каждой загрузки API, вручную и устанавливать вручную? Учитывая, что я на мобильном устройстве, я рассматриваю каждый бит как золото. Несмотря на то, что у меня есть неограниченный план данных, я предпочитаю не быть одним из тех, кто попадает в верхние 5%, что на самом деле произошло со мной по моему прежнему плану AT & T. Поэтому любой способ сделать это один раз и сделать это, не останавливая ADB, будет замечательным. Просто нужны ваши мысли. Спасибо за ваше время, я ценю это. AFAIK, после установки всех пакетов, менеджер загрузки перезапустит службу ADB. В вашем случае, похоже, что менеджер загрузок не смог остановить службу adb. Если бы я должен был проверить установку, Я бы просто начал установку снова, и на этот раз я, вероятно, увижу много пакетов, которые уже установлены. Если что-то не хватает, у меня будет возможность установить его. Вы всегда можете вручную перезапустить службу adb, чтобы проверить, не перезагрузится ли она без ошибок. Согласно http://sitepoint.com/beginning-android-install-an-android-platform , это сообщение об ошибке появляется «потому что сервер ADB не работает в данный момент». Это подразумевает, что вы можете спокойно игнорировать его: сервер ADB не должен запускаться; Процесс установки просто пытается остановить его, если он запущен. Кажется, что команда разработчиков должна действительно сообщить вам, что эта ошибка не представляет проблемы, а не выделяет ее красным цветом, как они все еще делают (по состоянию на декабрь 2014 года). Я также был привязан и не смог запустить adb в Android Studio. Так как он начал для привязки, кажется, что это конфликт для Android Studio, чтобы перезапустить его. Источник Error initializing ADB: Unable to create Debug Bridge: Unable to start ADB server When no other of these questions are helping me, then this means I need to remove and reinstall Android Studio. Here’s the error: Error initializing ADB: Unable to create Debug Bridge: Unable to start ADB server: adb server version (36) doesn’t match this client; killing. could not read OK from ADB server failed to start daemon error: cannot connect to daemon ‘C:\Android\Sdk\platform-tools\adb.exe start-server’ failed — run manually if necessary. 6 Answers 6 There are a couple of solutions depending on what exactly is causing the problem. So, just follow the following steps. Step 1:- Close Android-Studio. Step 2:- Open Command prompt or win + r , type cmd and press Enter . Step 3:- Navigate to your platform-tools , in most of the cases the location is: but in your case, the location is: For Mac users the path is Step 4:- Type adb.exe start-server , Press Enter Step 5:- Open Android Studio again. For Mac the command is just adb start-server The problem should be solved! If the problem persists, then follow these steps- Step 1:- Close Android Studio. Step 2:- Press Alt + Ctrl + Del , then choose Start Task Manager . Windows Task Manager opens. Step 3:- Go to the processes tab. Step 4:- Look for adb.exe and select that. Step 5:- Press End Process . Step 6:- Open Android Studio again. That’s it. Now your problem must be solved! But if the problem is still there (which I don’t think will happen), then there is something wrong (or might be missing) in your platform-tools . To fix that, delete platform-tools from your computer, then download them again from Official Android Developer website. Extract the downloaded file. Now place the extracted file, where platform-tools were located before deleting. Источник How to resolve the «ADB server didn’t ACK» error? [duplicate] I am trying to install my project on 5 AVD’s at the same time, but I constantly get this error, I am executing it on Windows 8.1 I have tried reading all possible posts on stackoverflow concerning this error, and all of them just mention that try to kill the adb process and restart eclipse and then all will be fine. I have tried the method mentioned in the posts and along with that I have also turned off my security and firewall, so that there is no obstruction on the port 5037. Somebody please help me as I need to execute my project and I am not able to do so :(. For your reference I can provide the output of the following command «netstat -ano | findstr «5037»» Somebody please suggest a workaround this problem, what might be the cause of this. Also you can take a look at the following image to infer what might be happening. 9 Answers 9 Try the following: Close Eclipse. Restart your phone. End adb.exe process in Task Manager (Windows). In Mac, force close in Activity Monitor. Issue kill and start command in \platform-tools\ C:\sdk\platform-tools> adb kill-server C:\sdk\platform-tools> adb start-server If it says something like ‘started successfully’, you are good. , there is a new pid for adb each time you kill server. For anyone using OSX (I’m aware OP isn’t): What worked for me in the end was removing the android settings folder in the home directory. For me it didn’t work , it was related to a path problem happened after android studio 2.0 preview 1, I needed to update genymotion and virtual box, and apparently they tried to use same port for adb. Solution is explained here link! Basically you just need to: 1) open genymotion settings 2) specify sdk path for the adb manually 3) adb kill-server 4) adb start-server Similar questions are First close IDE. In my case I killed adb via Task Manager( adb kill-server did not work) then adb start-server daemon not running. starting it now on port 5037 * daemon started successfully * If you see «started successfully» than it is solved, now start IDE. On my Mac, I wrote this code in my Terminal: xxx$ cd /Users/xxx/Documents/0_Software/adt20140702/sdk/platform-tools/ xxx-MacBook-Pro:platform-tools xxx$ ./adb kill-server xxx-MacBook-Pro:platform-tools xxx$ ./adb start-server daemon not running. starting it now on port 5037 * daemon started successfully * if you are using any mobile suit like mobogenie or something that might also will make this issue. try killing that too from the task manager. Note : i faced the same issue, tried the above solution. That didn’t work, finally found out this solution.May useful for someone else. On my end, I used Resource Monitor to see which application was still listening to port 5037 after all the Eclipse and adb restart were unsuccessful for me. This eventually showed that java.exe was listening to port 5037, hence, preventing adb from doing so. I killed java.exe, immediately start adb (with adb start-server) and received a confirmation that adb was able to start: I’ve got a kind of botch for the old ADB server didn’t ACK * failed to start daemon * issue which might help, though i haven’t seen anyone else with my problem so maybe not. Anyway. I changed the default install location for my HTC sensation to 2 (SD card), but when trying to revert back to 0 (internal) i was getting this error. Looking in task manager showed there were 2 instances of adb.exe running, one of which kept stopping and starting and was impossible to kill, the other could be killed but then a new instance would start almost immediately. The only way i could get adb to start successfully was to get my command ready in the command window, go to task manager to end the adb.exe, then when the window came up saying ‘are you sure you want to kill adb.exe’ dragged that over the command window, clicked OK then immediately pressed Enter to run the command. It seems that the short window between adb.exe being killed and restarting itself is sufficient to run a command, though if you try to do something else it won’t work and you have to repeat this process each time you want to run a command. PITA but it’s the only way an uneducated numpty like myself could get round it — hopefully it’ll help someone. Источник ddms: ‘adb.exe,start-server’ failed — run manually if necessary, Android Studio My adb is down, no matter I am using ADT or Android Studio. And according to the second answer of this SO question, I did: Then netstat -ano | findstr 5037 I did find a pid of 7416 who listen in 127.0.0.1:5037 I use taskkill /pid 7416 -f to kill it. I type netstat -ano | findstr 5037 again, I found another pid listens at 127.0.0.1:5037 again! I guess they are the same, but I have no idea who it is. Can I simply have a easy way to release this port or change the adb port to another one? 13 Answers 13 In my case I was trying to use genymotion emulator device. With genymotion opened and running, I’ve tried to run my app in this emulator but I it doesn’t worth In this part I had this error: Then I’ve tried Jaskey’s solution but it doesn’t works. So I stopped genymotion emulator. Then I restart ADB (Tools > Android > Unchecked Unable ADB Integration then I’ve checked again) Next I’ve start genymotion emulator again And now the app works on the emulator. Sometimes there are conflicts between ADB Genymotion and ADB SDK because both of them use the same port. So I recommend always set up ADB Genymotion to use the ADB SDK, in that way to avoid incompatible issues. Genymotion-> Settings -> ADB -> Use custom Android SDK tools (here your set up your sdk android location). Close Android Studio and any of your Emulators you are using, then goto->TaskManager and Kill the process(adb.exe) After finishing all these First open Android studio followed by emulators. I solve this problem at last! I finally found the program name of the pid and I kill it in the task manager. The way to detect is described in the question: adb nodaemon server 2.and then netstat -ano | findstr 5037 to find who takes this port. Get the pid and find it in the task manager. Please note that the process tab may not show the column of pid, we should include it by setting. In my case, it is tfadb.exe who takes this port! This is a Chinese Video program client! Try to kill it in task manager. Now I stop it starting from booting. The problem is solved. I solved by End task «adb.exe» background process from task manager. and Start adb thats it 🙂 Open the Genymotion emulator after opening The Android studio. Close Android studio then go to Task Manager End Task adb.exe goto Details menu End Task java.exe and jusched.exe now open Android Studio it will work properly Just goto the task manager on your PC, and kill adb.exe, then back to your android studio. it should initialize and reconnect. in my case one application on window use adb.exe. that application name is mobogenie. Fixed :: Goto Window TaskManager select adb.exe and press End process disconnect any usb connected android devices. I was tethering to my laptop via my cellphone for internet connection. I got the adb start server failed error with loopback error «port is only used for one socket connection». I disconnected my cellphone usb connection from my laptop and now android studio recognizes my genymotion emulator and another android device I have connected via usb in the deployment target box. Источник Ошибка: остановка сервера ADB с ошибкой (код -1) Я нахожусь в процессе загрузки и установки последних изображений Android API и System при недавней установке Android SDK. Загружая API, я быстро встретил ошибку в установке. Не удалось остановить сервер ADB (код -1). Мне любопытно, это повлияет на результат установки? В нем говорится, что он установлен, и он продолжался до следующего API, так ли это повлияло на это? Я предполагаю, что это произошло, потому что сейчас я загружаю API через Android-устройство Tethered Android, которое действительно зависит от ADB для привязки к компьютеру. Поэтому, если бы он остановился, это отменило бы загрузку, что сделало бы установку невозможной в любом случае. Итак, главный вопрос заключается в том, повлияет ли это на установку, не будучи в состоянии остановить ADB при установке и загрузке API. И если это повлияет на установку, не могли бы я просто следить за ссылками, перечисленными для каждой загрузки API, вручную и устанавливать вручную? Учитывая, что я на мобильном устройстве, я рассматриваю каждый бит как золото. Несмотря на то, что у меня есть неограниченный план данных, я предпочитаю не быть одним из тех, кто попадает в верхние 5%, что на самом деле произошло со мной по моему прежнему плану AT & T. Поэтому любой способ сделать это один раз и сделать это, не останавливая ADB, будет замечательным. Просто нужны ваши мысли. Спасибо за ваше время, я ценю это. AFAIK, после установки всех пакетов, менеджер загрузки перезапустит службу ADB. В вашем случае, похоже, что менеджер загрузок не смог остановить службу adb. Если бы я должен был проверить установку, Я бы просто начал установку снова, и на этот раз я, вероятно, увижу много пакетов, которые уже установлены. Если что-то не хватает, у меня будет возможность установить его. Вы всегда можете вручную перезапустить службу adb, чтобы проверить, не перезагрузится ли она без ошибок. Согласно http://sitepoint.com/beginning-android-install-an-android-platform , это сообщение об ошибке появляется «потому что сервер ADB не работает в данный момент». Это подразумевает, что вы можете спокойно игнорировать его: сервер ADB не должен запускаться; Процесс установки просто пытается остановить его, если он запущен. Кажется, что команда разработчиков должна действительно сообщить вам, что эта ошибка не представляет проблемы, а не выделяет ее красным цветом, как они все еще делают (по состоянию на декабрь 2014 года). Я также был привязан и не смог запустить adb в Android Studio. Так как он начал для привязки, кажется, что это конфликт для Android Studio, чтобы перезапустить его. Источник
- Error initializing ADB: Unable to create Debug Bridge: Unable to start ADB server
- 6 Answers 6
- How to resolve the «ADB server didn’t ACK» error? [duplicate]
- 9 Answers 9
- ddms: ‘adb.exe,start-server’ failed — run manually if necessary, Android Studio
- 13 Answers 13
- Ошибка: остановка сервера ADB с ошибкой (код -1) Я нахожусь в процессе загрузки и установки последних изображений Android API и System при недавней установке Android SDK. Загружая API, я быстро встретил ошибку в установке. Не удалось остановить сервер ADB (код -1). Мне любопытно, это повлияет на результат установки? В нем говорится, что он установлен, и он продолжался до следующего API, так ли это повлияло на это? Я предполагаю, что это произошло, потому что сейчас я загружаю API через Android-устройство Tethered Android, которое действительно зависит от ADB для привязки к компьютеру. Поэтому, если бы он остановился, это отменило бы загрузку, что сделало бы установку невозможной в любом случае. Итак, главный вопрос заключается в том, повлияет ли это на установку, не будучи в состоянии остановить ADB при установке и загрузке API. И если это повлияет на установку, не могли бы я просто следить за ссылками, перечисленными для каждой загрузки API, вручную и устанавливать вручную? Учитывая, что я на мобильном устройстве, я рассматриваю каждый бит как золото. Несмотря на то, что у меня есть неограниченный план данных, я предпочитаю не быть одним из тех, кто попадает в верхние 5%, что на самом деле произошло со мной по моему прежнему плану AT & T. Поэтому любой способ сделать это один раз и сделать это, не останавливая ADB, будет замечательным. Просто нужны ваши мысли. Спасибо за ваше время, я ценю это. AFAIK, после установки всех пакетов, менеджер загрузки перезапустит службу ADB. В вашем случае, похоже, что менеджер загрузок не смог остановить службу adb. Если бы я должен был проверить установку, Я бы просто начал установку снова, и на этот раз я, вероятно, увижу много пакетов, которые уже установлены. Если что-то не хватает, у меня будет возможность установить его. Вы всегда можете вручную перезапустить службу adb, чтобы проверить, не перезагрузится ли она без ошибок. Согласно http://sitepoint.com/beginning-android-install-an-android-platform , это сообщение об ошибке появляется «потому что сервер ADB не работает в данный момент». Это подразумевает, что вы можете спокойно игнорировать его: сервер ADB не должен запускаться; Процесс установки просто пытается остановить его, если он запущен. Кажется, что команда разработчиков должна действительно сообщить вам, что эта ошибка не представляет проблемы, а не выделяет ее красным цветом, как они все еще делают (по состоянию на декабрь 2014 года). Я также был привязан и не смог запустить adb в Android Studio. Так как он начал для привязки, кажется, что это конфликт для Android Studio, чтобы перезапустить его. Источник
Ошибка: остановка сервера ADB с ошибкой (код -1)
Я нахожусь в процессе загрузки и установки последних изображений Android API и System при недавней установке Android SDK.
Загружая API, я быстро встретил ошибку в установке.
Не удалось остановить сервер ADB (код -1).
Мне любопытно, это повлияет на результат установки? В нем говорится, что он установлен, и он продолжался до следующего API, так ли это повлияло на это?
Я предполагаю, что это произошло, потому что сейчас я загружаю API через Android-устройство Tethered Android, которое действительно зависит от ADB для привязки к компьютеру. Поэтому, если бы он остановился, это отменило бы загрузку, что сделало бы установку невозможной в любом случае.
Итак, главный вопрос заключается в том, повлияет ли это на установку, не будучи в состоянии остановить ADB при установке и загрузке API.
И если это повлияет на установку, не могли бы я просто следить за ссылками, перечисленными для каждой загрузки API, вручную и устанавливать вручную? Учитывая, что я на мобильном устройстве, я рассматриваю каждый бит как золото. Несмотря на то, что у меня есть неограниченный план данных, я предпочитаю не быть одним из тех, кто попадает в верхние 5%, что на самом деле произошло со мной по моему прежнему плану AT & T.
Поэтому любой способ сделать это один раз и сделать это, не останавливая ADB, будет замечательным. Просто нужны ваши мысли.
Спасибо за ваше время, я ценю это.
AFAIK, после установки всех пакетов, менеджер загрузки перезапустит службу ADB. В вашем случае, похоже, что менеджер загрузок не смог остановить службу adb. Если бы я должен был проверить установку,
Я бы просто начал установку снова, и на этот раз я, вероятно, увижу много пакетов, которые уже установлены. Если что-то не хватает, у меня будет возможность установить его.
Вы всегда можете вручную перезапустить службу adb, чтобы проверить, не перезагрузится ли она без ошибок.
Согласно http://sitepoint.com/beginning-android-install-an-android-platform , это сообщение об ошибке появляется «потому что сервер ADB не работает в данный момент». Это подразумевает, что вы можете спокойно игнорировать его: сервер ADB не должен запускаться; Процесс установки просто пытается остановить его, если он запущен.
Кажется, что команда разработчиков должна действительно сообщить вам, что эта ошибка не представляет проблемы, а не выделяет ее красным цветом, как они все еще делают (по состоянию на декабрь 2014 года).
Я также был привязан и не смог запустить adb в Android Studio. Так как он начал для привязки, кажется, что это конфликт для Android Studio, чтобы перезапустить его.
Источник
Error initializing ADB: Unable to create Debug Bridge: Unable to start ADB server
When no other of these questions are helping me, then this means I need to remove and reinstall Android Studio.
Here’s the error:
Error initializing ADB: Unable to create Debug Bridge:
Unable to start ADB server: adb server version (36) doesn’t match this client;
killing. could not read OK from ADB server
- failed to start daemon error:
cannot connect to daemon ‘C:\Android\Sdk\platform-tools\adb.exe start-server’ failed — run manually if necessary.
6 Answers 6
There are a couple of solutions depending on what exactly is causing the problem.
So, just follow the following steps.
Step 1:- Close Android-Studio.
Step 2:- Open Command prompt or win + r , type cmd and press Enter .
Step 3:- Navigate to your platform-tools , in most of the cases the location is:
but in your case, the location is:
For Mac users the path is
Step 4:- Type adb.exe start-server , Press Enter
Step 5:- Open Android Studio again.
For Mac the command is just adb start-server
The problem should be solved!
If the problem persists, then follow these steps-
Step 1:- Close Android Studio.
Step 2:- Press Alt + Ctrl + Del , then choose Start Task Manager .
Windows Task Manager opens.
Step 3:- Go to the processes tab.
Step 4:- Look for adb.exe and select that.
Step 5:- Press End Process .
Step 6:- Open Android Studio again.
That’s it. Now your problem must be solved!
But if the problem is still there (which I don’t think will happen), then there is something wrong (or might be missing) in your platform-tools .
To fix that, delete platform-tools from your computer, then download them again from Official Android Developer website.
Extract the downloaded file.
Now place the extracted file, where platform-tools were located before deleting.
Источник
How to resolve the «ADB server didn’t ACK» error? [duplicate]
I am trying to install my project on 5 AVD’s at the same time, but I constantly get this error, I am executing it on Windows 8.1
I have tried reading all possible posts on stackoverflow concerning this error, and all of them just mention that try to kill the adb process and restart eclipse and then all will be fine. I have tried the method mentioned in the posts and along with that I have also turned off my security and firewall, so that there is no obstruction on the port 5037. Somebody please help me as I need to execute my project and I am not able to do so :(. For your reference I can provide the output of the following command «netstat -ano | findstr «5037»»
Somebody please suggest a workaround this problem, what might be the cause of this. Also you can take a look at the following image to infer what might be happening.
9 Answers 9
Try the following:
- Close Eclipse.
- Restart your phone.
- End adb.exe process in Task Manager (Windows). In Mac, force close in Activity Monitor.
- Issue kill and start command in \platform-tools\
- C:\sdk\platform-tools> adb kill-server
- C:\sdk\platform-tools> adb start-server
- If it says something like ‘started successfully’, you are good.
, there is a new pid for adb each time you kill server.
For anyone using OSX (I’m aware OP isn’t): What worked for me in the end was removing the android settings folder in the home directory.
For me it didn’t work , it was related to a path problem happened after android studio 2.0 preview 1, I needed to update genymotion and virtual box, and apparently they tried to use same port for adb.
Solution is explained here link! Basically you just need to:
1) open genymotion settings
2) specify sdk path for the adb manually
3) adb kill-server
4) adb start-server
Similar questions are
First close IDE.
In my case I killed adb via Task Manager( adb kill-server did not work)
then adb start-server
- daemon not running. starting it now on port 5037 *
- daemon started successfully *
If you see «started successfully» than it is solved, now start IDE.
On my Mac, I wrote this code in my Terminal:
xxx$ cd /Users/xxx/Documents/0_Software/adt20140702/sdk/platform-tools/
xxx-MacBook-Pro:platform-tools xxx$ ./adb kill-server
xxx-MacBook-Pro:platform-tools xxx$ ./adb start-server
- daemon not running. starting it now on port 5037 *
- daemon started successfully *
if you are using any mobile suit like mobogenie or something that might also will make this issue. try killing that too from the task manager.
Note : i faced the same issue, tried the above solution. That didn’t work, finally found out this solution.May useful for someone else.
On my end, I used Resource Monitor to see which application was still listening to port 5037 after all the Eclipse and adb restart were unsuccessful for me.
This eventually showed that java.exe was listening to port 5037, hence, preventing adb from doing so. I killed java.exe, immediately start adb (with adb start-server) and received a confirmation that adb was able to start:
I’ve got a kind of botch for the old ADB server didn’t ACK * failed to start daemon * issue which might help, though i haven’t seen anyone else with my problem so maybe not. Anyway.
I changed the default install location for my HTC sensation to 2 (SD card), but when trying to revert back to 0 (internal) i was getting this error. Looking in task manager showed there were 2 instances of adb.exe running, one of which kept stopping and starting and was impossible to kill, the other could be killed but then a new instance would start almost immediately.
The only way i could get adb to start successfully was to get my command ready in the command window, go to task manager to end the adb.exe, then when the window came up saying ‘are you sure you want to kill adb.exe’ dragged that over the command window, clicked OK then immediately pressed Enter to run the command. It seems that the short window between adb.exe being killed and restarting itself is sufficient to run a command, though if you try to do something else it won’t work and you have to repeat this process each time you want to run a command.
PITA but it’s the only way an uneducated numpty like myself could get round it — hopefully it’ll help someone.
Источник
ddms: ‘adb.exe,start-server’ failed — run manually if necessary, Android Studio
My adb is down, no matter I am using ADT or Android Studio.
And according to the second answer of this SO question, I did:
Then netstat -ano | findstr 5037
I did find a pid of 7416 who listen in 127.0.0.1:5037
I use taskkill /pid 7416 -f to kill it.
I type netstat -ano | findstr 5037 again, I found another pid listens at 127.0.0.1:5037 again!
I guess they are the same, but I have no idea who it is.
Can I simply have a easy way to release this port or change the adb port to another one?
13 Answers 13
In my case I was trying to use genymotion emulator device. With genymotion opened and running, I’ve tried to run my app in this emulator but I it doesn’t worth
In this part I had this error:
Then I’ve tried Jaskey’s solution but it doesn’t works.
So I stopped genymotion emulator. Then I restart ADB (Tools > Android > Unchecked Unable ADB Integration then I’ve checked again)
Next I’ve start genymotion emulator again And now the app works on the emulator.
Sometimes there are conflicts between ADB Genymotion and ADB SDK because both of them use the same port. So I recommend always set up ADB Genymotion to use the ADB SDK, in that way to avoid incompatible issues.
Genymotion-> Settings -> ADB -> Use custom Android SDK tools (here your set up your sdk android location).
Close Android Studio and any of your Emulators you are using,
then goto->TaskManager and Kill the process(adb.exe)
After finishing all these First open Android studio followed by emulators.
I solve this problem at last! I finally found the program name of the pid and I kill it in the task manager.
The way to detect is described in the question:
adb nodaemon server
2.and then netstat -ano | findstr 5037 to find who takes this port.
Get the pid and find it in the task manager. Please note that the process tab may not show the column of pid, we should include it by setting.
In my case, it is tfadb.exe who takes this port! This is a Chinese Video program client! Try to kill it in task manager.
Now I stop it starting from booting. The problem is solved.
I solved by End task «adb.exe» background process from task manager. and Start adb thats it 🙂
Open the Genymotion emulator after opening The Android studio.
Close Android studio then go to Task Manager
- End Task adb.exe
- goto Details menu
- End Task java.exe and jusched.exe
now open Android Studio it will work properly
Just goto the task manager on your PC, and kill adb.exe, then back to your android studio. it should initialize and reconnect.
in my case one application on window use adb.exe.
that application name is mobogenie.
Fixed :: Goto Window TaskManager select adb.exe and press End process
disconnect any usb connected android devices. I was tethering to my laptop via my cellphone for internet connection. I got the adb start server failed error with loopback error «port is only used for one socket connection».
I disconnected my cellphone usb connection from my laptop and now android studio recognizes my genymotion emulator and another android device I have connected via usb in the deployment target box.
Источник
Ошибка: остановка сервера ADB с ошибкой (код -1)
Я нахожусь в процессе загрузки и установки последних изображений Android API и System при недавней установке Android SDK.
Загружая API, я быстро встретил ошибку в установке.
Не удалось остановить сервер ADB (код -1).
Мне любопытно, это повлияет на результат установки? В нем говорится, что он установлен, и он продолжался до следующего API, так ли это повлияло на это?
Я предполагаю, что это произошло, потому что сейчас я загружаю API через Android-устройство Tethered Android, которое действительно зависит от ADB для привязки к компьютеру. Поэтому, если бы он остановился, это отменило бы загрузку, что сделало бы установку невозможной в любом случае.
Итак, главный вопрос заключается в том, повлияет ли это на установку, не будучи в состоянии остановить ADB при установке и загрузке API.
И если это повлияет на установку, не могли бы я просто следить за ссылками, перечисленными для каждой загрузки API, вручную и устанавливать вручную? Учитывая, что я на мобильном устройстве, я рассматриваю каждый бит как золото. Несмотря на то, что у меня есть неограниченный план данных, я предпочитаю не быть одним из тех, кто попадает в верхние 5%, что на самом деле произошло со мной по моему прежнему плану AT & T.
Поэтому любой способ сделать это один раз и сделать это, не останавливая ADB, будет замечательным. Просто нужны ваши мысли.
Спасибо за ваше время, я ценю это.
AFAIK, после установки всех пакетов, менеджер загрузки перезапустит службу ADB. В вашем случае, похоже, что менеджер загрузок не смог остановить службу adb. Если бы я должен был проверить установку,
Я бы просто начал установку снова, и на этот раз я, вероятно, увижу много пакетов, которые уже установлены. Если что-то не хватает, у меня будет возможность установить его.
Вы всегда можете вручную перезапустить службу adb, чтобы проверить, не перезагрузится ли она без ошибок.
Согласно http://sitepoint.com/beginning-android-install-an-android-platform , это сообщение об ошибке появляется «потому что сервер ADB не работает в данный момент». Это подразумевает, что вы можете спокойно игнорировать его: сервер ADB не должен запускаться; Процесс установки просто пытается остановить его, если он запущен.
Кажется, что команда разработчиков должна действительно сообщить вам, что эта ошибка не представляет проблемы, а не выделяет ее красным цветом, как они все еще делают (по состоянию на декабрь 2014 года).
Я также был привязан и не смог запустить adb в Android Studio. Так как он начал для привязки, кажется, что это конфликт для Android Studio, чтобы перезапустить его.
Источник