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

Hi Guys,
Im getting the following error…kindly help

appium 1.7.2
java-client- 5.0.4
have added APP_WAIT_ACTIVITY

capabilities.setCapability(“appWaitActivity”,GenericLib.toReadProperty(sPropFile, “APP_WAIT_ACTIVITY”));

app wait activity i have given the splashactivity is the only activity required to lanunch the app

Issue: First time when it runs the test it works fine,second time again when full rest happens im getting this error

org.openqa.selenium.WebDriverException: 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
Command duration or timeout: 100.49 seconds
Build info: version: ‘3.6.0’, revision: ‘6fbf3ec767’, time: ‘2017-09-27T15:28:36.4Z’
System info: host: ‘PG00YLAH-BLR’, ip: ‘192.168.43.66’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_161’
Driver info: driver.version: AndroidDriver

Install Apkinfo app from play store and check First activity name in Activities folder…

thanks for ur reply i have used the first activity which is used to launch the app splash.activity …i m not sure if i need to include all the activity under main or appium does not know where the apk is present in device

IN Apkinfo app you can see multiple activity in Activities…try all of them 1 by 1…it will work