Appium 1.7.1: Getting error: Error occured while starting App. Original error: 'com.company.android.activity.LoginActivity'

Hi,

I am using appium version 1.7.1 and below are the details of my issue:

I have configured Jenkins to execute my test classes on a build machine sequentially.
Execution flow: The login to app process happens in the first test class only and rest of all test classes of the same suite executes sequentially from the home window without login to the app again and again in the same session.

This process was working on the previous appium version 1.5.4

But In the latest Appium version 1.7.1, my Jenkins job is failing with appium error:
“error: Error occured while starting App. Original error: ‘com.company.android.activity.LoginActivity’ never started”

Any ideas on it to fix?

If anything needed, please let me know!

Thanks!!!