Use appium1.8 to start the app with an error:
2018-05-08 17:09:16:890- [encountered] internal error running Command:error: [100%]/data/local/tmp/unicode ime-debug.apk
2018-05-08 17:09:16:890- [/usr/local/lib/node_modules/appium/node_modules/[email] protected]@ Appium-android-ime/bin/unicodeime-debug.apk:1 file pushed. 4.5 MB/s (36795 bytes in 0.008s)
2018-05-08 17:09:16:890- [the] pkg:/data/local/tmp/unicodeime-debug.apk
2018-05-08 17:09:16:891- [Failure] [install_failed_update_incompatible]
2018-05-08 17:09:16:893- [about] at adb.executeinstall$ (/usr/local/lib/node_modules/appium/node_modules/ [Email protected] @appium-adb/lib/tools/apk-utils.js:398:13)
2018-05-08 17:09:16:893- [about] at TryCatch (/usr/local/lib/node_modules/appium/node_modules/[email prote CTED] @babel-runtime/regenerator/runtime.js:67:40)
2018-05-08 17:09:16:894- [the] at Generatorfunctionprototype.invoke [as _invoke] (/usr/local/lib/node_m Odules/appium/node_modules/[email protected] @babel-runtime/regenerator/runtime.js:315:22)
2018-05-08 17:09:16:894- [about] at Generatorfunctionprototype.prototype. ( anonymous function) [as Next] (/usr/local/lib/node_modules/appium/node_modules/[email protected] @babel-runtime/ regenerator/runtime.js:100:21)
2018-05-08 17:09:16:894- [about] at Generatorfunctionprototype.invoke (/usr/local/lib/node_modules/appium /node_modules/[email protected] @babel-runtime/regenerator/runtime.js:136:37)
2018-05-08 17:09:16:894- [about] at <anonymous>
2018-05-08 17:09:16:895- [HTTP] <--post/wd/hub/session 5747ms-1834
Follow the prompts, really press the APK times wrong, apk location. /usr/local/lib/node_modules/appium/node_modules/[email protected] @appium-android-ime/bin/unicodeime-debug.apk
Error: Install_failed_update_incompatible
The reason for this is that the signature has changed and it looks like the upgrade to Appium 1.8. And the phone has previously installed this app, signature inconsistency caused. This app can not be found in the phone interface for a while to assist. This app can only be uninstalled by installing the ADB command. Command Uninstall to know the package name of this app, the package name can be queried by the AAPT command. The AAPT command in the Android_home directory build-tools/27.0.3/directory, you can copy this command to the android_home/tools/directory, so that does not prompt aapt command not found. If you find the appt command, you can get the APK registration.
Execute command: AAPT dump Badging/usr/local/lib/node_modules/appium/node_modules/[email protected] @appium-android-ime/bin/ unicodeime-debug.apk
Can see the first line
Package:name= ' io.appium.android.ime ' versioncode= ' 1 ' versionname= ' 1.0 ' platformbuildversionname= ' 4.4.2-1456859 '
One of the Io.appium.android.ime is the package name.
Execute adb Uninstall Io.appium.android.ime remove this app before performing the installation
ADB install/usr/local/lib/node_modules/appium/node_modules/[email protected] @appium-android-ime/bin/ UNICODEIME-DEBUG.APK can be installed successfully, Appium can continue to run normally
Appium install unicodeime-debug.apk prompt after upgrade