adb has stopped working in android studio

时光毁灭记忆、已成空白 提交于 2021-01-21 08:28:12

问题


I am trying to build my first app in android studio and getting an error "adb.exe has stopped working". I am working on Windows xp 32 bit system.

Have tried several solutions available online including -kill server/restart -updating platform tools folder -adding 127.0.0.1 as exception to be allowed Still nothing seems to work out. Kindly help!!! Thanks in advance


回答1:


I think you miss a .dll file, this file api-ms-win-crt-locale-l1-1-0.dll from your Windows 32-Bit system, just download that file according to your system and Copy/Paste the file to C:\Windows\System32

You can download it from here: https://www.sts-tutorial.com/sites/downloadCenter.php?api-ms-win-crt-locale-l1-1-0




回答2:


Download fresh adb files File names in the zip files will be:

  1. adb.exe
  2. AdbWinApi.dll
  3. AdbWinUsbApi.dll
  4. fastboot.exe
    Go to C:\Users\YOUR_USER_NAME\AppData\Local\Android\Sdk\platform-tools and paste these four files. (replace the old one). It will work fine

Download here https://androidstudio.io/downloads/tools/download-the-latest-version-of-adb.exe.html




回答3:


The platform tools now depend on the Windows Universal C Runtime, which is usually installed by default via Windows Update. This is required from 28.0.2 (March 2019).

So if you are on an older version of windows or unable to update your windows, you must use an older version of platform-tools.

How to install the older version of platform tools?

1. Delete all files from your your-sdk-location\platform-tools

2. Download platform tools version 28.0.1 from here. Extract and copy all those files to your-sdk-location\platform-tools




回答4:


Try below command before adb start

adb kill-server
adb start-server



回答5:


For my case, Downloading latest SDK platform tools and extracting it into platform-tools of your SDK location

You can know your SDK path from Android studio >> Tools >> SDK Manager >> Android SDK Location




回答6:


The missing dll file is located in the Java installation folder. Add it as a system PATH variable and reboot. Example location C:\Program Files (x86)\Java\jdk1.8.0_202\jre\bin




回答7:


Updating the Windows Universal C Runtime fixed it for me.

Get the update from microsoft



来源:https://stackoverflow.com/questions/54784292/adb-has-stopped-working-in-android-studio

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!