Unable to run adb.exe from platform-tools folder path

1

Setup

  • android studio version 3.3.2
  • JRE:1.8.0-152-release-1248-b01-amd64
  • build tool version is 28.0.2

I am unable to start adb.exe file from platform-tools in sdk folder . Error popping in taskbar of android studio is "unable to detect adb version,adb output". When i run adb.exe application from SDK folder error is---->The Application was unable to start correctly(0xc000007b).---------

I had reinstall android studio many times. also deleted the platform-tools folder and re-downloaded Android sdk platform-tools. sdk platform tool enter image description here

android
asked on Stack Overflow Apr 12, 2019 by Mohit Gupta • edited Apr 12, 2019 by eliolako

4 Answers

11

I found a solution after spending the 3 day. Replace your current adb with another working adb. Click here to download adb.

Steps:->

1> First download adb file for the above link .

2> To add adb file in platform-tools inside Sdk folder in android studio.

3> Open Android Studio and go to Tools and inside Tools there is a SDK Manager.
click on SDK Manager as shown below:--

4> Copy the Android SDK Location address (path is as like as C:\Users\APPPPPPPPPPPPPPP\AppData\Local\Android\Sdk ) shown below

5> Search the copy address in the search bar of Windows OS,then a Platform-Tools folder is show under Sdk folder.

6> Open the Platform-Tools delete the existing adb.exe file and add the downloaded adb.exe file is pasted in the Platform-tools folder.

After placing the adb.exe file.Open Android Studio and create a new project of use existing project and click on Run in the menu bar or Run button and you see that in Event Log the error of unable to detect adb version,adb output is removed and you successfully run the project either by using AVD emulator OR Real devices like android smartphones.

answered on Stack Overflow Apr 13, 2019 by Mohit Gupta • edited Apr 13, 2019 by Mohit Gupta
0

That error code refers to an invalid image format. However, what the error code usually means is that you are trying to run a program that is intended to work with a 64 bit Windows operating system, but that you only have a 32 bit OS.

Try restarting your computer and see if it works. If it doesn't work, try to uninstall and reinstall the program by going into Control Panel>Classic View>add/remove programs or program and features.

answered on Stack Overflow Apr 12, 2019 by Candice Dick
0

try this solution,

1) close Android Studio.

1) Delete the folder name platform-tools from Sdkfolder(find path from SDK Manager) folder.

2) Open Android Studio, in SDK Manager -> SDK Tools. checked the checkBox of Android Sdk Plateform-Tools and Apply.

3) now, Restart Android studio and try again.

answered on Stack Overflow Apr 13, 2019 by Mayur Dabhi
0

I resolved this error with next step:

  1. -> Open Android Studio -> open SDK Manager and see where is location SDK folder, most often is: C:\Users\Toshiba\AppData\Local\Android\Sdk, then shutdown Android Studio,
  2. -> Open \platform-tools folder and try run adb.exe. If you cant open or get any message error like this: api-ms-win-crt-heap-l1-1-0.dll is missing
  3. -> go on this site download and install Visual C++ Redistributable for Visual Studio 2015 (32- and 64-bit versions)
  4. -> Open Windows Explorer and right click “My PC”. Select “Properties”
  5. -> Select “Advanced System Settings” -> select “Environment Variables” -> and upon System variable click on NEW: Variable name: PATH and Variable value: C:\Users\Toshiba\AppData\Local\Android\Sdk -> OK
  6. -> Restart PC and run Android Studio
answered on Stack Overflow Nov 17, 2019 by ErKo

User contributions licensed under CC BY-SA 3.0