adb has stopped working in android studio - android

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

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

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

Try below command before adb start
adb kill-server
adb start-server

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

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

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

Updating the Windows Universal C Runtime fixed it for me.
Get the update from microsoft

Related

Unable to detect adb version, adb output in Android Studio 3.3.2

I have done following task for solutions;
Download and update platform-tools
Change Sdk path and re-download
Uninstalled Android Sdk platform-tools and Android Sdk tools after re-install.
Update adb path in Environment
Change virtual memory size
But it's still not working... I'm using android studio version 3.3.2
error show like Unable to detect adb version means connection devices showing none when i run the app
If other solutions don't work and you're on Windows, check if Visual C ++ is installed.
If needed, you can download it here.
Just change adb.exe in location sdk\platform-tools -adb.exe and replace it. It will work. SDK folder is in users\account name\appdata\local\android\SDK\platform-tools
In my case: D:\ANDROID SETUP\sdk\platform-tools due to low c drive space ..
It will work ......
For anyone experiencing issues with Android Studio 3.3.2 not detecting Genymotion: make sure to point Genymotion to use the Android SDK ADB and not the one it's shipped with. It seems like this is because Genymotion is shipped with outdated ADB
I solved my problem. That was the visual studio installation problem. In my system visual studio c++ 2015 installed. Just repair or re-installed it.
Locate the adb.exe file in the platform-tools folder . Double-click to run it . If it shows an error message , you need to install the C++ runtime from here. Else you should up-date/reinstall the sdk
i downgrade my adb and use this as guidance
https://www.xda-developers.com/install-adb-windows-macos-linux/

Error Initializing ADB: Android Debug Bridge not found [duplicate]

After updating Android Studio to 2.0 l am getting this error unable to obtain debug bridge and Android Device Monitor does not open. Anyone faced this error before?
I just open sdk manager and installed all android sdk tools and done.
Check whether you need to install "Android Sdk Platform Tools" in the Android SDK Manager.
Somehow, after installing Android Studio from the bundle (for Linux) I lacked the "platform-tools" directory in "Android/Sdk", where the adb executable resides. Installing the platform tools helped. It was easier to find in the standalone sdk manager.
This is because you deleted the adb.exe (it might be your antivirus who deleted it),that resided in the platform tools in the android sdk folder.
What you need to do is to delete the current platform-tools in the sdk manager program and re install it all over again.
I installed the right sdk version that matched my virtual device android version
I am also running the same problem when update android studio from 1.4 to 1.5 stable version. When I run adb command from terminal then i found following error :
bash: ./adb: cannot execute binary file: Exec format error
After R&d I found that this error occurs due to unsupported architecture. In my case:
I am using ubuntu14.04 LTS 32-bit. I observed that after updation, lib folder under platform-tools converted to lib64. I think above error occurs due to 32-bit architecture because after updation 32-bit support removed.
For permanent solution upgrade you system to 64-bit architecture.
Quick solution is to replace the updated platform-tools folder with old one that containing the lib folder instead of lib64.
I think 32-bit architecture support for android development stopped by google for future releases. But I am not sure.
I am phase these error when updating Android-SDK Plateform-Tools 23.1 in Android SDK Manager
i am worked on ubuntu 14.04 [32bit] that is not supporting with Plateform-Tools 23.1 it is only supporting in 64bit Operating System architecture that's why downgrade my Plateform-tools 23.0
it works perfect...!!!
Go to: Android Studio Settings > Appearance & Behavior > System Settings > Android SDK:
If path for SDK are text in red, change to your SDK folder and click ***APPLY***
Open the standalone SDK manager and install the platform tools package.

Unable to install "Android SDK Platform Tools" from SDK Manager

Below error displays during installation:
Done loading packages.
Preparing to install archives
Downloading Android SDK Platform-tools, revision 26.0.2
Download interrupted: Connection to https://dl.google.com refused
Done. Nothing was installed.
Preparing to install archives
Downloading Android SDK Platform-tools, revision 26.0.2
Download finished with wrong checksum. Expected 98832431e339c82be1fe910a733a3782071200fd, got aa3ef6f18eff4b8f12dbdf980647a6ce6c2ebe8c.
Done. Nothing was installed.
I had to install it by myself.
Download link:
https://developer.android.com/studio/releases/platform-tools.html
Select the zip file SDK Platform-Tools for Windows and extract it.
Move it into your android directory, in my case it was: C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository\AndroidSDK-2433_19.0.27659.1188.
Now you have the new directory: C:\Users\Public\Documents\Embarcadero\Studio\19.0\CatalogRepository\AndroidSDK-2433_19.0.27659.1188\platform-tools.
Run SDK Manager.exe again.
In my case, the error was gone. I had to install 4 packages first and then I had to install 3 packages after that. Now it run perfect.
You can just extract the archive the SDK Manager already downloaded:
Go to your android-sdk directory
Enter the 'temp' folder
Extract the 'platform-tools_r26.0.2-windows.zip' to the android-sdk root directory
But this makes the checksum pointless, it might be better to wait until it is fixed unless you need the new version now.
I resolved this by first removing the Android SDK Platform-tools using the Android SDK Manager. Then I used the direct download link provided by Umair Malhi above (https://dl.google.com/android/repository/platform-tools_r26.0.2-windows.zip) then extracted the platform-tools folder into the SDK folder (which in my case is C:\ProgramData\Microsoft\AndroidSDK\25). If you rerun Android SDK Manager, the issue is resolved.
I had the same issue, after running Visual Studio as an Administrator then the updates went through successfully.
EDIT: Newer versions of VS now prompts you to run VS in Administrator mode when you click on Android SDK Platform Tools.
I had the same checksum issue, until I just updated to Android Studio 3.0. Now the Android SDK Platform-tools 26.0.2 downloads and installs as expected. Not sure if the issue still exists for Android Studio 2.x or it was fixed separately, but it's worth trying again now.
In my case all I needed to do was run Android Studio as administrator and the the packages installed with no problem.
I have the same problem, in my case I hadn't write rules to platform-tools folder. So I gave me write rules with the command:
sudo chmod -R ugo+rw

Error:Unable to obtain debug bridge in android studio

After updating Android Studio to 2.0 l am getting this error unable to obtain debug bridge and Android Device Monitor does not open. Anyone faced this error before?
I just open sdk manager and installed all android sdk tools and done.
Check whether you need to install "Android Sdk Platform Tools" in the Android SDK Manager.
Somehow, after installing Android Studio from the bundle (for Linux) I lacked the "platform-tools" directory in "Android/Sdk", where the adb executable resides. Installing the platform tools helped. It was easier to find in the standalone sdk manager.
This is because you deleted the adb.exe (it might be your antivirus who deleted it),that resided in the platform tools in the android sdk folder.
What you need to do is to delete the current platform-tools in the sdk manager program and re install it all over again.
I installed the right sdk version that matched my virtual device android version
I am also running the same problem when update android studio from 1.4 to 1.5 stable version. When I run adb command from terminal then i found following error :
bash: ./adb: cannot execute binary file: Exec format error
After R&d I found that this error occurs due to unsupported architecture. In my case:
I am using ubuntu14.04 LTS 32-bit. I observed that after updation, lib folder under platform-tools converted to lib64. I think above error occurs due to 32-bit architecture because after updation 32-bit support removed.
For permanent solution upgrade you system to 64-bit architecture.
Quick solution is to replace the updated platform-tools folder with old one that containing the lib folder instead of lib64.
I think 32-bit architecture support for android development stopped by google for future releases. But I am not sure.
I am phase these error when updating Android-SDK Plateform-Tools 23.1 in Android SDK Manager
i am worked on ubuntu 14.04 [32bit] that is not supporting with Plateform-Tools 23.1 it is only supporting in 64bit Operating System architecture that's why downgrade my Plateform-tools 23.0
it works perfect...!!!
Go to: Android Studio Settings > Appearance & Behavior > System Settings > Android SDK:
If path for SDK are text in red, change to your SDK folder and click ***APPLY***
Open the standalone SDK manager and install the platform tools package.

Unable to find hprof-conv when launching Android Device Monitor

I am using the Android Studio IDE and the SDK that comes with it.
When trying to open the Android Device Monitor I continue to recieve a dialog box asking me to point to the Android SDK. When I do it suggests that it can't find the file tools/hprof-conv.
This worked a couple days ago and just started...even with fresh installs of android studio.
Here is a screen shot:
In the last versions of the SDK the hprof-conv.exe file is located at /platform-tools folder, not /tools. To fix this problem you should copy the hprof-conv.exe from the /platform-tools to /tools.
or for Linux you can navigate to the tools folder & use this command to make a link
ln -s ../platform-tools/hprof-conv hprof-conv
FYI this should already be fixed with latest.
If you're seeing this error, re-run your Android SDK manager and make sure Android SDK Tools is updated to Rev. 23.0.1 or later.

Categories

Resources