Appium-desktop: [MJSONWP] Encountered internal error running command: Error: Could not find adb Please set the ANDROID_HOME environment variable with the Android SDK root directory path.

Created on 28 Apr 2017  Β·  3Comments  Β·  Source: appium/appium-desktop

Appium Desktop?

My ANDROID_HOME variable is set,

  • Anupam-Patil:~$ appium-doctor
  • info AppiumDoctor ### Diagnostic starting ###
  • (node:11360) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
  • info AppiumDoctor βœ” Xcode is installed at: /Applications/Xcode.app/Contents/Developer
  • info AppiumDoctor βœ” Xcode Command Line Tools are installed.
  • info AppiumDoctor βœ” DevToolsSecurity is enabled.
  • info AppiumDoctor βœ” The Authorization DB is set up properly.
  • info AppiumDoctor βœ” The Node.js binary was found at: /usr/local/bin/node
  • info AppiumDoctor βœ” HOME is set to: /Users/apn6125
  • info AppiumDoctor βœ” ANDROID_HOME is set to: /Users/apn6125/Library/Android/android-sdks
  • info AppiumDoctor βœ” JAVA_HOME is set to: /Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home
  • info AppiumDoctor βœ” adb exists at: /Users/apn6125/Library/Android/android-sdks/platform-tools/adb
  • info AppiumDoctor βœ” android exists at: /Users/apn6125/Library/Android/android-sdks/tools/android
  • info AppiumDoctor βœ” emulator exists at: /Users/apn6125/Library/Android/android-sdks/tools/emulator
  • WARN AppiumDoctor βœ– Bin directory for $JAVA_HOME is not set
  • info AppiumDoctor ### Diagnostic completed, one fix needed. ###
  • info AppiumDoctor
  • info AppiumDoctor ### Manual Fixes Needed ###
  • info AppiumDoctor The configuration cannot be automatically fixed, please do the following first:
  • WARN AppiumDoctor - Add '$JAVA_HOME/bin' to your PATH environment
  • info AppiumDoctor ###
  • info AppiumDoctor
  • info AppiumDoctor Bye, run appium-doctor again when all manual fixes have been applied!
  • info AppiumDoctor

The problem

When I am launching Appium new GUI and running some program, it’s giving me error as below in GUI console-

[MJSONWP] Encountered internal error running command: Error: Could not find adb Please set the ANDROID_HOME environment variable with the Android SDK root directory path.

screen shot 2017-04-28 at 11 15 19 pm

Environment

  • I am running Appium Desktop New GUI Version 1.0.0 (1.0.0)
  • I am on :

    • [ ] Mac

Most helpful comment

screenshot

[ ] ANDROID_HOME is set
[ ] adb also detected

The above diagnostic could be deceiving / dependant on your terminal. To be sure, open a new terminal and run the appium-doctor. That would uncover any issues.

As many have already said - just ensure your ~/.bash_profile has everything set:

screenshot

And that should fix it.

All 3 comments

According to the doctor it looks like it's not set. How do you think you have it set?

screenshot

[ ] ANDROID_HOME is set
[ ] adb also detected

The above diagnostic could be deceiving / dependant on your terminal. To be sure, open a new terminal and run the appium-doctor. That would uncover any issues.

As many have already said - just ensure your ~/.bash_profile has everything set:

screenshot

And that should fix it.

thanks for that @webmagit. will close here unless further evidence of a bug arises.

Was this page helpful?
0 / 5 - 0 ratings