[v1.6.0-beta3] 'Activity used to start app doesn't exist or cannot be launched!' when trying to run Android tests
See original GitHub issueThe problem
I’m unable to run Android tests since I can’t even launch the app: An unknown server-side error occurred while processing the command. Original error: Error occured while starting App. Original error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity (Selenium::WebDriver::Error::UnknownError)
I think this is a similar issue that I experienced with 1.5-beta8 version in the past: https://github.com/appium/appium/issues/5936
Environment
- Appium version (or git revision) that exhibits the issue: 1.6.0-beta3
- Last Appium version that did not exhibit the issue (if applicable): 1.4.16/1.5.3
- Desktop OS/version used to run Appium: Mac OS Sierra
- Node.js version (unless using Appium.app|exe): v5.1.1
- Mobile platform/version under test: Android 5.0.2
- Real device or emulator/simulator: Real device
- Appium CLI or Appium.app|exe: CLI
Details
@launch @reset
Feature: launch to default login or registration
Background: # features/launch.feature:4
An unknown server-side error occurred while processing the command. Original error: Error occured while starting App. Original error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity (Selenium::WebDriver::Error::UnknownError)
./features/support/hooks.rb:10:in `Before'
Given I am on launch screen # features/step_definitions/common_steps.rb:1
@sanity @analytics
Scenario: already registered and have a card # features/launch.feature:8
When I have a card # features/step_definitions/launch_steps.rb:1
Then I should be taken to the login screen # features/step_definitions/launch_steps.rb:9
undefined method `save_screenshot' for nil:NilClass (NoMethodError)
./features/support/utils/screenshot_utils.rb:16:in `capture'
./features/support/hooks.rb:19:in `After'
Failing Scenarios:
cucumber -p android -p launch -p default_flags -p default_tags -p skip_ios features/launch.feature:8 # Scenario: already registered and have a card
1 scenario (1 failed)
7 steps (7 skipped)
0m15.763s
Exited with status: 1
Janis-MacBook-Air:bdd janijegoroff$
Link to Appium logs
https://gist.github.com/JaniJegoroff/690765390a02707e54d6b0406bca8aa0
Code To Reproduce Issue [ Good To Have ]
Please remember that, with sample code; it’s easier to reproduce bug and much faster to fix it.
Please git clone https://github.com/appium/sample-code and use one of your favourite languages and sample apps to reproduce issue.
In case a similar scenario is missing in sample-code, please submit a PR with one of the sample apps provided.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (8 by maintainers)
Top GitHub Comments
What are you trying to do when running
appium -adb@2.6.16
? That is not a thing.To get the latest code, reinstall the beta (
npm uninstall -g appium@beta && npm install -g appium@beta
).This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.