Mujas
Mujas

Reputation: 39

Not able to connect adb Android Studio to 3.4.1

unable to connect to adb.check the event log for a possible issue, verify that localhost entry is pointing to 127.0.0.1 or:: 1 for ipv4 or ipv6.

Getting an error while running my sample application in android device.

ADB error on a fresh installation of android studio.

Image

Upvotes: 1

Views: 2533

Answers (1)

Mujas
Mujas

Reputation: 39

Finally I got answer for my own question. This is due to some Windows OS update issue. Please follow the below step to confirm.

  1. Goto C:\Users\bn\AppData\Local\Android\Sdk\platform-tools
  2. Open command prompt from this location and type, adb devices
  3. If you get below error dialog, then the problem is with your windows setup and not any issues with Android Studio.

adb command error

Image

Solution:

Download the package for your Windows version from below link. In my case I have downloaded "All supported x64-based versions of Windows 8.1" package and installed the exe. Once installation is complete check the adb command. It should work.

https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows

Upvotes: 2

Related Questions