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.

Not able to launch activity with espresso driver version 1.11.0

See original GitHub issue

Same code works fine for appium-espresso-driver version 1.10.1 Below is the error log :

Error in onReload hook: "Error: A new session could not be created. Details: io.appium.espressoserver.lib.handlers.exceptions.SessionNotCreatedException: java.lang.RuntimeException: Could not launch activity at io.appium.espressoserver.lib.handlers.CreateSession.handle(CreateSession.kt:37) at io.appium.espressoserver.lib.handlers.CreateSession.handle(CreateSession.kt:26) at io.appium.espressoserver.lib.http.Router.route(Router.java:335) at io.appium.espressoserver.lib.http.Server.serve(Server.java:69) at fi.iki.elonen.NanoHTTPD$HTTPSession.execute(NanoHTTPD.java:945) at fi.iki.elonen.NanoHTTPD$ClientHandler.run(NanoHTTPD.java:192) at java.lang.Thread.run(Thread.java:764) Caused by: java.lang.RuntimeException: Could not launch activity at androidx.test.runner.MonitoringInstrumentation.startActivitySync(MonitoringInstrumentation.java:467) at io.appium.espressoserver.lib.helpers.ActivityHelper.startActivity(ActivityHelper.java:70) at io.appium.espressoserver.lib.handlers.CreateSession.handle(CreateSession.kt:34) ... 6 more Caused by: java.lang.RuntimeException: Unable to resolve activity for: Intent { act=android.intent.action.MAIN flg=0x14000000 cmp=com.abc.xyz/.com.efg.pax.newface.presentation.newface.NewFace } at ̦(Instrumentation.java:439) at androidx.test.runner.MonitoringInstrumentation.access$101(MonitoringInstrumentation.java:98) at androidx.test.runner.MonitoringInstrumentation$4.call(MonitoringInstrumentation.java:443) at androidx.test.runner.MonitoringInstrumentation$4.call(MonitoringInstrumentation.java:440) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) ... 1 more

I can see a . after app package name. If i remove that and run adb shell am start -n com.abc.xyz/com.egf.pax.newface.presentation.newface.NewFace the activity is successfully launched. I am not sure why is . added.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
juandgcommented, May 17, 2019

@pwunsch This was fixed after appium 1.13.0 was already out. The fix will be in when appium 1.13.1 is released or you can try it now in appium@beta

1reaction
mykola-mokhnachcommented, May 4, 2019

@juandg Could you please try if https://github.com/appium/appium-espresso-driver/pull/441 works for you? Here you can find more info on how to run Appium from source and here on how to build the server apk.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Appium-espresso-driver - npm.io
Appium's Espresso Driver is a test automation server for Android that uses Espresso ... In case the server is not installed or an...
Read more >
Create UI tests with Espresso Test Recorder
Learn how the Espresso Test Recorder tool lets you create UI tests for your app without writing any test code.
Read more >
appium/appium - Gitter
I am starting to believe it is not possible to run appium on github action to test an app with iOS simulateur. I...
Read more >
android.support.test.espresso.NoActivityResumedException
I have several activities and there is no issue for one of them while I'm getting following error when I try to run...
Read more >
appium | Yarn - Package Manager
Appium is an open-source, cross-platform test automation tool for native, hybrid, and mobile web and desktop apps. We support simulators (iOS), emulators ( ......
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