Reputation: 151
i try to open the Android app in Nougat 7 or above android version but there is a error show in appium, the error is bellow.
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Command failed: Failed to install C:\Program Files (x86)\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]\r\n)","killed":false,"code":1,"signal":null,"origValue":"Command failed: Failed to install C:\Program Files (x86)\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]\r\n"},"sessionId":null}
info: <-- POST /wd/hub/session 500 7986.817 ms - 520
So, Please Suggest me how to solve the session null issue. Note: the same code is run in android OS 6 Marshmallow, 5 Lollipop.
Upvotes: 1
Views: 526
Reputation: 3658
The issue you are facing was fixed in recent Appium server release 1.7.1.
In change log under Android section you will find
Add support to force upgrade settings app
So your steps now:
npm install [email protected] -g
Upvotes: 1
Reputation: 4559
Try uninstalling the app manually if it already exists on the device. If it does not, try an erase/reset of the device itself. I've run into upgrade/overwrite issues in the past that were resolved by cleaning up the device.
Upvotes: 0