Android Studio: Unable to get "adb version" result

I try to start development in an Android application using Android Studio, but whenever I try to start the application, I get the error message Unable to obtain result of 'adb version' I tried to uninstall and reinstall Android Studio several times on different computers ( both are running Windows 10) and every time I get the same error. I investigated the problem and could not find a consistent solution. (or one that really works). I am very new to Android development and do not understand a bit what to do; any help in solving this problem would be greatly appreciated.

+7
android android-studio adb
Jun 26 '16 at 9:23
source share
4 answers

Found a solution thanks to @ user3109468, Android Studio had the wrong directory for the Android SDK. In File> Project Structure, make sure the directory for the SDK is correct; mine was C:\Users\[user]\AppData\Local\Android\sdk (Google gave sdk the capital "S" for some reason ...)

+10
Jun 26 '16 at 12:56
source share

Uncheck the box: enable adb integration with Tools>Android and enable it again.

It worked for me.

+8
May 22 '17 at 18:26
source share

This may be due to a problem with Windows virtual memory. Try running adb from the command line. something like adb version BTW, platform tools will be located in c:\Users\<your userid>\AppData\Local\Android\sdk\platform-tools

How much does it take from you, who shoots the team, and actually gets the answer? if it takes more than 5 seconds, then the android studio plays out waiting for an answer and gives an error.

How to fix? close your entire program (process?) and go to the control panel → System-> system presets-> Advanced tab → performance → settings → preliminary → change virtual memory

Try reducing the size of virtual memory. Fr If he makes 4096Mb its 2048Mb (both initial and maximum), he will ask you to restart, so reboot and have a cup of coffee because it will take some time. Then, as soon as your system gets up, try running the adb version. Does he work fast? If yes, the problem is fixed. Go back to the virtual memory and increase its size before it was before, and what it is.

By the way, I noticed in my case that the simple hello world program took 20 seconds to execute on my machine until the virtual memory problem was fixed.

+2
Dec 14 '16 at 21:19
source share

Make sure the location of the Android SDK and the location of the Android NDK are correct.

  • Go to File → Project Structure.
  • Set the location of the Android SDK and the location of the Android NDK. enter image description here
0
May 05 '17 at 6:01 a.m.
source share



All Articles