Hi Bilal,
I’m getting same error message after pasting your suggested code below. Any more suggestions?
public class appium_login {
public static AppiumDriver driver;
public static void main(String[] args) throws Exception {
File appDir = new File(System.getProperty("user.dir")+"/Com_first_app/app/release/app-release.apk");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(“app”, appDir);
capabilities.setCapability(“deviceName”, “Nexus 6 API 25”);
capabilities.setCapability(“platformName”, “Android”);
capabilities.setCapability(“platformVersion”, “7.1”);
capabilities.setCapability(“fullReset”, false);
capabilities.setCapability(“appPackage”, “com.example.com_first_app”);
capabilities.setCapability(“appActivity”, “com.example.com_first_app.Login”);
driver = new AndroidDriver(new URL(“http://127.0.0.1:4723/wd/hub”), capabilities);
driver.manage().timeouts().implicitlyWait(5,TimeUnit.SECONDS);
driver.findElementById(“com.example.com_first_app:id/email_sign_in_button”).sendKeys("test@gmail.com");
driver.findElementById(“com.example.com_first_app:id/password”).sendKeys(“12345678”);
driver.findElementById(“com.example.com_first_app:id/email_sign_in_button”).click();
Thread.sleep(1000);
driver.quit();
}
}