Encountered internal error running command: Error: Error occured while starting App. Original error:

Error: Encountered internal error running command: Error: Error occured while starting App. Original error: Error executing adbExec
[ADB] Error: Error occured while starting App. Original error: Error executing adbExec. Original error: ‘Command ‘C\:\\Users\\bo_\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe -P 5037 -s 127.0.0.1\:62001 shell am start -W -n

An unknown server-side error occurred while processing the command. Original error: Error occured while starting App. Original error: Error executing adbExec. Original error: ‘Command ‘C\:\\Users\\bo_\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe -P 5037 -s 127.0.0.1\:62001 shell am start -W -n com.eg.android.AlipayGphone/com.eg.android.AlipayGphone.AlipayLogin -S’ timed out after 20000ms’; Stderr: ”; Code: ‘null’ (WARNING: The server did not provide any stacktrace information

1. First check if the local app can be opened
2. See if the DesiredCapabilities configuration is normal

First look at the activity, using the command
Open the app under test and enter the command adb shell dumpsys window | findstr mCurrentFocus
Start the app under test and enter the command
>adb shell dumpsys activity activities >E:\aaa.txt

Read More: