Not able to launch activity with espresso driver version 1.11.0
See original GitHub issueSame 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:
- Created 4 years ago
- Reactions:2
- Comments:18 (5 by maintainers)
Top GitHub Comments
@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
@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.