New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to uninstall APK under Android 8 Oreo #9196
Comments
Do you get the same error if this command is executed manually? What error description do you see in the terminal? |
Yes, I have an error too : adb -P 5037 -s 013a3a8de3d93345 uninstall com.sncf.fusion Exception occurred while executing: I will check now the versions of my tools (I use the java client). |
Yep, it looks like since 7.1 Android's pm tool handles missing package uninstall differently. Related issue reports: @imurchie Looks like we need to handle this properly on our side as well |
the fix is merged to 1.7.0-beta. Please update and let us know if it works |
Thanks for your new release :) I have many differents errors.
|
Can you delete the unlock helper? It seems to not be launchable for some reason? |
Or set the skipUnlock capability to true |
I tried the 2 solutions : remove Unlock before run the test and add the capability "skipUnlock". https://gist.github.com/appiumnovice/c192975a6737ae8d18ac6b8a2f3f8371#file-with-skipunlock |
The recent log looks very messy to me. It looks like several operations are being concurrently executed at the same time and this causes problems. |
OK. I stopped all others tests that run in parallel. I tried 2 processes:
|
OK, found the problem. |
This should be fixed if you get the latest beta ( |
Yes, it works ! |
All thanks go to @mykola-mokhnach ! |
@imurchie hi, could you help me how can i run your solution, i'm beginner and have same error: |
The command was uninstalling old appium and installing new one. |
@KazuCocoa now i want to know how can i run this command? |
Do you mean http://appium.io/docs/en/about-appium/intro/ 's Appium Server section? |
I did: |
The problem
I have the error "Unable to uninstall APK ... 'Command '/Users/xxx/Library/android/sdk/platform-tools/adb -P 5037 -s 013a3a8de3d93345 uninstall com.xxx.fusion' exited with code 255'"
when I launch test on Android 8.0 (Oreo) on Emulator and on Device Nexus 5x.
Environment
Details
On emulator, after the creation of the emulator, the app is installed once with success by Appium and the test is correctly run.
The reinstallation of the app for the next test doesn't work.
So I uninstalled the app manually and tried again : same error.
On device, I have the same error.
Link to Appium logs
Appium server log
https://gist.github.com/appiumnovice/c192975a6737ae8d18ac6b8a2f3f8371
The text was updated successfully, but these errors were encountered: