问题
Failed to create session. An unknown server-side error occurred while processing the command. Original error: Cannot start the ‘com.android.calculator2’ application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Activity for intent ‘android.intent.action.MAIN’ used to start the app doesn’t exist or cannot be launched! Make sure it exists and is a launchable activity
报错信息
环境
解决方法
adb logcat -s ActivityManager:I
添加activity配置
{
"platformName": "android",
"appium:appPackage": "com.android.calculator2",
"appActivity": ".Calculator"
}