INSTALL_FAILED_UPDATE_INCOMPATIBLE- Appium Eclipse错误

时间:2017-03-20 18:33:33

标签: appium

我正在尝试从Appium(Eclispe Java / Selenium / Appium项目)启动amazon.apk。获取以下错误消息

org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Remote install failed: pkg: /data/local/tmp/15dc8f05bc75fbbc3d67915f0bf9215b.apk

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]) (WARNING: The server did not provide any stacktrace information)


Console Logs

System info: host: 'VEENA', ip: '192.168.2.5', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_121'
Driver info: driver.version: AndroidDriver
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:216)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:168)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:367)
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:113)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141)
    at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:69)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:604)
    at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:40)
    at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)

2 个答案:

答案 0 :(得分:0)

解决方案#1请确保您没有安装旧版本的应用程序。

如果您还没有卸载 - 请在您的Android设备上进入设置>应用>搜索亚马逊应用程序>卸载。 删除申请后>运行你的测试,它应该正常安装。

解决方案#2如果这是生产apk,请重新安装应用>而不是使用AppInstaller卸载它,这应该工作。

请告诉我哪种解决方案适合您。

答案 1 :(得分:0)

如果您尝试安装的新apk与您当前手机上安装的apk相比版本较旧,则通常会发生这种情况。例如,如果您的手机有1.2.3并且您尝试安装的1.2.0小于1.2.3,则会抛出此错误。如建议的那样,卸载当前的apk并尝试重新安装它。如果您从Playstore测试Amazon,请手动从Playstore安装并建议您直接使用appPackage和appActivity而不是使用apk。