question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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 issue

The 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:closed
  • Created 7 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
imurchiecommented, Oct 6, 2016

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).

0reactions
lock[bot]commented, Apr 28, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Appium-Activity used to start app doesn't exist or cannot be ...
Original error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity. The...
Read more >
Activity used to start app doesn't exist or cannot be launched ...
Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity.
Read more >
Unable to run tests against 1.5 beta8 on Android #5936 - GitHub
[v1.6.0-beta3] 'Activity used to start app doesn't exist or cannot be launched!' when trying to run Android tests #6943.
Read more >
Help! "Activity used to start app doesn't exist! Make sure it exists"
If I run the test for android, it breaks with A new session could not be created. (Original error: Activity used to start...
Read more >
Appium Tutorial Step by Step Appium Automation
I will use Appium Desktop and Android Studio to create a sample mobile ... our application is starting with “com.isinolsun.app.activities.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found