Appium running an error on Android 7.0 phone---------Failure [install_failed_already_exists:attempt to re-install Io.appium.settings Without first uninstalling.]
Workaround:
Enter the Appium installation directory and locate the Adb.js (D:\Program Files (x86) \appium\node_modules\appium\node_modules\appium-adb\lib]adb.js) in the directory
Adb.js in 1035 rows ( cause of error: This.shell ("PS" + name + "'", function (err, stdout) {Corresponding execution instruction is ps ' uiautomator ', Android7 does not support this command grid So the execution result is bad pid ' Uiautomator ')
This.shell ("PS" + name + "'", function (err, stdout) { if (ERR) return CB (ERR); Replace with This.shell_grep ("PS", name, function (err, stdout) { if (err) { logger.debug ("No matching processes Found "); Return CB (NULL, []); } and add the Shell_grep function used above: ADB.prototype.shell_grep = function (cmd, grep, CB) {if (Cmd.indexof (' "') = = =-1) {cmd = '" ' + cmd + ‘"‘;} var execcmd = ' Shell ' + cmd + ' | grep ' + grep;this.exec (ExecCmd, CB);};
Appium's Android 7.0 environment building