Start the appium server from code with AppiumDriverLocalService object

Thanks Wreed!

Indeed after adding the ANDROID_HOME variable to the java project it worked!

Thanks!

ANDROID_HOME
/Users/sgmacbookpro/Appium/sdk

===============================
The solution for the below error:
[ADB] The ANDROID_HOME environment variable is not set to the Android SDK root directory path.

Open the Configuration for you project by right click–>Run As–>Run Configuration

Add the ANDROID_HOME variable & it’s path to the android sdk on your machine as follows:

1 Like