Appium设置中文输入报错: Attempt to re-install io.appium.android.ime without first

 

 

 问题:

Appium设置中文输入报错: Attempt to re-install io.appium.android.ime without first

 解决:

方法一:​​​​​​使用adb卸载,但是每次需要用adb卸载,比较麻烦,不可行

Appium设置中文输入报错: Attempt to re-install io.appium.android.ime without first

 

方法二:

二、Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "D:\android-sdk-windows\tools\adb.exe -s AK

使用appium在执行app自动化测试时,是会在手机上安装2个应用程序的。分别是:AppiumSettings和Unlock

 

我们在使用真机去跑自动化的时候是需要先卸载这3个apk ,实际上我们只卸载了前2个,而漏掉了后面这个。

我们使用adb命令:

adb shell pm list package -3

或adb shell pm list package -3 | findstr appium

查出所有的第三方安装包:

Appium设置中文输入报错: Attempt to re-install io.appium.android.ime without first

可以看到这样的包名:

package:io.appium.android.ime

解决方法:

卸载这个3个包。可以选择通过命令的方法,也可以直接卸载,但是直接卸载的话手机上只能卸载其中2个,所以会导致卸载不干净。

Appium设置中文输入报错: Attempt to re-install io.appium.android.ime without first