Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity

Perfect after commenting the package it start working. Thank you for your solution

Hello guys,

I need your help. Seems a similar issue but no success for me doing things which was usefull for @juanmartinvidal .

So Error is: “Original error: Cannot start the ‘com.oneonone.boxvpn’ application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Cannot start the ‘com.oneonone.boxvpn’ application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Activity name ‘.boxpn.gtcap.co.uk.react_vpn.SplashActivity’ used to start the app doesn’t exist or cannot be launched! Make sure it exists and is a launchable activity”

I have used following code in capabilities:

capabilities.setCapability("platformName", "Android");
capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "Demo");
capabilities.setCapability(MobileCapabilityType.APP, app.getAbsolutePath());
capabilities.setCapability(MobileCapabilityType.APPIUM_VERSION, "1.10.1");
driver = new AndroidDriver<>(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
capabilities.setCapability("appWaitPackage", "com.oneonone.boxvpn");
capabilities.setCapability("appWaitActivity", "*");

Also I have used different cases for “appWaitActivity”:
capabilities.setCapability(“appWaitActivity”, “.boxpn.gtcap.co.uk.react_vpn.SplashActivity”); OR
capabilities.setCapability(“appWaitActivity”, “boxpn.gtcap.co.uk.react_vpn.SplashActivity”); OR
capabilities.setCapability(“appWaitActivity”, “.boxpn.gtcap.co.uk.react_vpn.MainActivity”); OR
capabilities.setCapability(“appWaitActivity”, “boxpn.gtcap.co.uk.react_vpn.MainActivity”); OR
capabilities.setCapability(“appWaitActivity”, “.SplashActivity"); OR
capabilities.setCapability(“appWaitActivity”, "
.MainActivity”); OR

Nothing from listed strings didn’t works. Please let me know if you have any ideas or things I can try to invoke an app.

@Aleksei Can you pls take a look? Hope you will be able to give me an advice :slight_smile:

@mark.tumanow try:

boxpn.gtcap.co.uk.react_vpn.*

Also check appium log in debug mode. It will tell what visible instead.

Which fist one option. Please explain

Hi i tried the ways it does not worked for me, i am trying to launch PWA app which is added to home screen, captured app package and activity from logcat and added like below in desired capabilities. kindly help me on this

“appPackage”, “org.chromium.webapk.afee816e6b3662b7c_v2”
“appWaitActivity”,“org.chromium.webapk.shell_apk.h2o.SplashActivity”

What is in Appium debug logs?

@Aleksei Error logs:

org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Cannot start the ‘org.chromium.webapk.a60482a5a984533c5_v2’ application. Visit

https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\metta.aparna\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s fc09558a shell am start -W -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000’ exited with code 1’; Command output: Error: Intent matches multiple activities; can’t stop: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 }

Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:17:03’
System info: host: ‘WBLL0322E4556’, ip: ‘192.168.43.25’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_311’
Driver info: driver.version: AndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Cannot start the ‘org.chromium.webapk.a60482a5a984533c5_v2’ application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Error executing adbExec. Original error: ‘Command ‘C:\Users\metta.aparna\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s fc09558a shell am start -W -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000’ exited with code 1’; Command output: Error: Intent matches multiple activities; can’t stop: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 }

at getResponseForW3CError (C:\Program Files\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:804:9)
at asyncHandler (C:\Program Files\Appium Server GUI\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\protocol.js:380:37)

Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:17:03’
System info: host: ‘WBLL0322E4556’, ip: ‘192.168.43.25’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_311’
Driver info: driver.version: AndroidDriver

It is quite clear. This activity not allowed to start.

Read more https://appium.io/docs/en/writing-running-appium/android/activity-startup/

then how do i start the application, is there any other way to start my app??
basically i am launching a PWA app in browser and adding the shortcut to device home screen… now after performing few actions in browser i want to switch to shortcut app which is installed…
when I start my app using above app package and activity its not working. also, when i do driver.context(“NATIVE_APP”) also my app does not get started. suggest me with the solution.

Ask your app developers which activity allowed to use with app start.