Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
795 views
in Others by
edited by

I am getting below error while setting up Appium for android on Mac OS X

Error: Target id is not valid. Use 'android list targets' to get the target ids.

Warning: Setup cmd /Users/***/Documents/android-sdk-macosx/tools/android failed with code 1 Use --force to continue.

Aborted due to warnings.

---- FAILURE: reset.sh exited with status 1 ----

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)
selected by
 
Best answer
just set your ANDROID_HOME, and add $ANDROID_HOME/tools and $ANDROID_HOME/platform-tools to variable $PATH.

Open Terminal and type android. You will see Android SDK Manager GUI. Select target and install it.

You can come back to terminal and type "android-list-targets". You will see targets there.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...