How do we Install and Uninstall Android App using Appium?
App is not previously installed and I’m trying for fresh installation.
I have been using “–full-reset” to start the appium server. Also providing setting setting capability.
Install App on real device.
You have to declare your apk file location.
File file = new File(“pathToYourApkFile.apk”);
Also add:
capabilities.setCapability(“app”, app.getAbsolutePath());
These lines will install app in your real device.
Install App on virtual device:
Just copy apk file to SDK folder and run adb install yourapk.apk
Can you be more elaborate with your requirement ?
Below command will uninstall the APK from your device. Ensure to call it before driver is killed or quit.