Programing

"adb 서버 버전이이 클라이언트와 일치하지 않습니다"오류 해결

lottogame 2020. 8. 27. 08:05
반응형

"adb 서버 버전이이 클라이언트와 일치하지 않습니다"오류 해결


이 질문에 이미 답변이 있습니다.

py.test가 텍스트 파일에서 가져 오려는 변수와 잘 작동하지 않기 때문에 py.test 대신 Python으로 Appium 스크립트를 실행하고 있습니다. 파이썬으로 스크립트를 실행하면 첫 번째 방법에 항상 오류가 있다는 것을 제외하고는 모든 것이 작동합니다.

누구든지 다음 오류를 수정하는 방법을 알고 있습니까?

adb server version (31) doesn't match this client (36) adb server version (32) doesn't match this client (36); killing...


다음을 수행하여이 문제를 해결했습니다.

  1. GenyMotion 설정-> ADB 탭으로 이동합니다.
  2. Genymotion Android 도구 사용 (기본값) 대신 사용자 지정 Android SDK 도구 사용을 선택한 다음 설치된 SDK를 검색했습니다.

이 오류가 발생하는 한 가지 가능한 이유 는 개발 머신의 adb 버전 과 디버깅에 사용되는 연결된 연결된 기기 / 에뮬레이터의 차이 때문입니다.

따라서 해상도는 다음과 같습니다.

  1. 먼저 장치 / 에뮬레이터를 분리합니다.
  2. 다음 명령에 따라 터미널 / 명령 프롬프트에서 실행합니다.

    adb kill-server
    adb start-server
    

그러면 adb가 성공적으로 시작됩니다. 이제 장치를 연결할 수 있습니다. 도움이되기를 바랍니다.


제 경우 솔루션은 Ubuntu 기반 OS에서 다음과 같습니다.

adb kill-server
sudo cp ~/Android/Sdk/platform-tools/adb /usr/bin/adb
sudo chmod +x /usr/bin/adb
adb start-server

좋아요 : https://stackoverflow.com/a/38166059/3765109


똑같은 문제입니다. 죽이고 시작하려고 시도했지만 이것이 나를 위해 일한 것 :

adb reconnect

도움이되기를 바랍니다.


시스템에 2 개의 adb 버전이있는 것 같습니다. 그들을 찾아서 Android SDK 폴더에만 adb를 유지하고 adb 파일을 포함하는 다른 모든 폴더를 삭제하십시오. Application Monitor에서 사용중인 adb를 확인할 수 있습니다.

여기에 이미지 설명 입력

adb가 Android SDK 폴더에없는 경우 문제가 될 수 있습니다.

제 경우에는 여기에서 adb를 실행하고 있음을 알았습니다.

/ Library / Application Support / RSupport / Mobizen2

Mobizen2 폴더를 삭제하면 모든 adb 명령이 제대로 작동합니다.


여전히이 문제가있는 사용자 (Windows) :

  1. 작업 관리자 열기
  2. 프로세스로 이동하여 ADB.EXE를 선택하십시오.
  3. 그것을 마우스 오른쪽 버튼으로 클릭하고 속성을 확인하십시오.
  4. 대부분의 경우 adb.exe가 실행되는 위치 (HTC 관리자, Genymotion 등)와 다른 경로가 표시됩니다.
  5. 프로세스 종료
  6. Run ADB.exe from your android studio path ( in my case: C:\Users\%user%\AppData\Local\Android\sdk\platform-tools )

This solved the problem in my case.


Most likely you have several adb version on your computer. You start adb server using one version and then trying to connect to this server using another version. For example - Genymotion has it's own adb and if you start Genymotion emulator and then try to use adb from Android SDK most likely you will have such error (the latest Genymotion which is 2.7.2 has adb version 1.0.32 while the latest Android SDK has adb version 1.0.36).


For me it was happening because I had android tools installed in two places: 1. The location where I manually downloaded it from google 2. Automatic download by Android studio

What I was able to do was completely delete the folder in #1 and point my bash profile and all other references to the location where Android studio installed it for me: /Users/my_user_name/Library/Android/sdk

This solved it.


For those of you that have HTC Sync installed, uninstalling the application fixed this problem for me.


On Windows, just check in the windows task manager if there are any other adb processes running.

Or run adb kill-server

If yes, just kill it & then perform the adb start-server command.

I hope, it should solve the problem.


I had same problem since updated platfrom-tool to version 24 and not sure for root cause...(current adb version is 1.0.36)

Also try adb kill-server and adb start-server but problem still happened

but when I downgrade adb version to 1.0.32 everything work will


What worked for me:

  1. adb kill-server
  2. Close all chrome://inspect/#devices windows/tabs
  3. adb start-server
  4. adb devices

  1. adb kill-server
  2. close any pc side application you are using for manage the android phone, e.g. 360mobile(360手机助手). you might need to end them in task manager in necessary.
  3. adb start-server and it should be solved

This issue for me was caused by having apowermirror running at the same time, from what I can tell any software that could use a different version of adb could cause these issues as others mention in this thread this can include Genymotion or from other threads unreal studio was the problem.


If you are using android studio then give it a try:

Remove and path variable of adb from system variable/user variable. Then go to terminal of android studio and then type there command adb start-service.

I tried this and it worked for me.


Mainly you need to delete duplicate adb.exe file. You can use Everything to Find.

keep the platform-tools adb.exe

and add the platform-tools directory to your Environment Path Variable.

I am using Memu Emulator.

So, I have taken these steps:

Go to Memu Installation Directory: (In My Case D:\Program Files\Microvirt\MEmu)

And then Delete the adb.exe file.

It should work fine for you.


I've recently had this issue too and after none of the answers on here worked I realised that the APK I was testing against would have been built against the latest sdk.

So I went into the Appium settings and changed the platform version to the latest version and this resolved the issue for me.

참고URL : https://stackoverflow.com/questions/38214012/solving-adb-server-version-doesnt-match-this-client-error

반응형