SplashScreen never started error

Looking for some help resolving this issue. I’m trying to launch an .apk file on a device using Appium, but I’m receiving this error:

WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Error occured while starting App. Original error: 'com.xxx.android.activities.startscreen.SplashScreen' never started

The app itself launches perfectly fine on the device and the splash screen is displayed, and then lands on the home screen.

The Appium server cycles through this several times before ending the session:

[debug] [ADB] Incorrect package and activity. Retrying.
[debug] [ADB] Getting focused package and activity
[debug] [ADB] Getting connected devices...
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running '/Users/jonh.doe/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","1115fba355432f05","shell","dumpsys","window","windows"]
[debug] [ADB] Found package: 'com.xxx.android.debug' and fully qualified activity name : 'com.xxx.android.activities.startscreen.StartScreen'

Issue resolved with:

'appWaitActivity': 'com.xxx.android.activities.startscreen.StartScreen',

1 Like