问题
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:
- adb.exe
- AdbWinApi.dll
- AdbWinUsbApi.dll
- 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