Solution for android to appium

appium server getting error

error in android studio

@venkatreddy, Please add app capability in your desired capabilities as mentioned in Appium server logs

thanks, @SireeshaSimakurthy garu, but am already added my app desired capabilities. if any corrections below code please tell me.

Hi @venkatreddy, you also need to add app capability also like below

capabilities.setCapability(“app”, “/Users/ssimakurthy/node_modules/sample-apps/pre-built/selendroid-test-app.apk”)

@venkatreddy you want to start calculator app on phone. try:

capabilities =;
capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, AutomationName.APPIUM); // could be also: AutomationName.APPIUM AutomationName.ANDROID_UIAUTOMATOR2 "espresso"
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "Android"); // means connect to any first device
capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, MobilePlatform.ANDROID);
capabilities.setCapability(AndroidMobileCapabilityType.APP_PACKAGE, appPackage);
capabilities.setCapability(AndroidMobileCapabilityType.APP_ACTIVITY, appActivity);
capabilities.setCapability(MobileCapabilityType.FULL_RESET, false);
capabilities.setCapability(MobileCapabilityType.NO_RESET, true);
driver = new AndroidDriver<>(new URL(baseURL+port+minorURL), capabilities);

you do not need to specify “Browser” as you do not need it but AUTOMATION_NAME specify is a must.

all based on latest java-client 5.0.0-BETA9 and latest appium 1.6.6

You can watch this playlist :