环境 python2.7 /APPium 1.15.1/手机版本 android 10
报错信息:
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Cannot start the 'com.qhb.insurance.uat' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Error executing adbExec. Original error: 'Command 'D:\MyProjectApplication\Android\android-sdk\platform-tools\adb.exe -P 5037 -s HYC5T19C05020189 shell am start -W -n com.qhb.insurance.uat/com.qhb.insurance.view.SettingActivity -S' exited with code 255'; Stderr: 'Security exception: Permission Denial: starting Intent { flg=0x10000000 cmp=com.qhb.insurance.uat/com.qhb.insurance.view.SettingActivity } from null (pid=26962, uid=2000) not exported from uid 10228

java.lang.SecurityException: Permission Denial: starting Intent { flg=0x10000000 cmp=com.qhb.insurance.uat/com.qhb.insurance.view.SettingActivity } from null (pid=26962, uid=2000) not exported from uid 10228
at com.android.server.wm.ActivityStackSupervisor.checkStartAnyActivityPermission(libmapleservices.so:5782548)
at com.android.server.wm.ActivityStarter.startActivity(libmapleservices.so:5878680)
at com.android.server.wm.ActivityStarter.startActivity(libmapleservices.so:5885048)
at com.android.server.wm.HwActivityStarter.startActivity(libmaplehwServices.so:3734960)
at com.android.server.wm.ActivityStarter.startActivityMayWait(libmapleservices.so:5402924)
at com.android.server.wm.HwActivityStarter.startActivityMayWait(libmaplehwServices.so:3593884)
at com.android.server.wm.ActivityStarter.execute(libmapleservices.so:5886420)
at com.android.server.wm.ActivityTaskManagerService.startActivityAndWait(libmapleservices.so:8145724)
at com.android.server.am.ActivityManagerService.startActivityAndWait(libmapleservices.so:8146604)
at com.android.server.am.ActivityManagerShellCommand.runStartActivity(libmapleservices.so:8149424)
at com.android.server.am.ActivityManagerShellCommand.onCommand(libmapleservices.so:8167028)
at android.os.ShellCommand.exec(libmapleframework.so:8790304)
at com.android.server.am.ActivityManagerService.onShellCommand(libmapleservices.so:8168756)
at android.os.Binder.onTransact(libmapleframework.so:6993908)
at android.app.IActivityManager$Stub.onTransact(libmapleframework.so:8143156)
at com.android.server.am.ActivityManagerService.onTransact(libmapleservices.so:7411484)
at com.android.server.am.HwActivityManagerService.onTransact(libmaplehwServices.so:4278144)
at android.os.Binder.execTransactInternal(libmapleframework.so:8310780)
at android.os.Binder.execTransact(libmapleframework.so:8310004)'; Code: '255'

请教各位大神,这是什么导致的


↙↙↙阅读原文可查看相关链接,并与作者交流