Open Dor-bl opened 8 months ago
03-06 15:14:53.743 25186 25264 W PackageManager: Not removing non-existent package io.appium.uiautomator2.server
Looks like the package isn't on the device.
Install doesn't work either. How does it work on the end? Isn't it been installed automatically when a session start? The idea was to uninstall those before each session start to avoid crashes which I read was a solution for the above. But is it even a good approach?
Shouldn't need to manually install or uninstall these, no, unless there's some issue with them. The driver will install them and launch them for you. Could also just run appium driver run uiautomator2 reset
instead.
@jlipps Looks like the above command is very useful for my needs. Closing the issue
@jlipps, Now I have issues again with that device. I used the suggested command, but this time, it won't help. https://gist.github.com/Dor-bl/f50962f2500700766b3b3719ab034bb1 Again I see this log:
dbug ADB Running 'C:\Users\user\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s R5CT83YDZ2M shell am force-stop io.appium.uiautomator2.server.test'
dbug ADB 'io.appium.uiautomator2.server' is not installed
info ADB io.appium.uiautomator2.server was not uninstalled, because it was not present on the device
Any other suggestions?
maybe try with just one device connected a time? you have 2 devices connected. but the script seems to have run successfully.
Hi
Suddenly I'm unable to uninstall
io.appium.uiautomator2.server
for one of my real devices:steps to repro: adb -s R5CT83YDZ2M uninstall io.appium.uiautomator2.server adb -s R5CT83YDZ2M uninstall io.appium.uiautomator2.server.test
Both return an error: Failure [DELETE_FAILED_INTERNAL_ERROR]
Logcat: