电脑上面 appium 环境都 ok,打开其他 app 也可以,但是公司 app 就是不行
下面是报错信息:
An unknown server-side error occurred while processing the command. Original error: Cannot start the 'com.fiture.taurus' 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 'C:\Android\android-sdk\platform-tools\adb.exe -P 5037 -s a0e00fa8 shell am start -W -n com.fiture.taurus/com.fiture.taurus.ui.home.HomeActivity -S' exited with code 255'; Stderr: 'Security exception: Permission Denial: starting Intent { flg=0x10000000 cmp=com.fiture.taurus/.ui.home.HomeActivity } from null (pid=15302, uid=2000) not exported from uid 10650

java.lang.SecurityException: Permission Denial: starting Intent { flg=0x10000000 cmp=com.fiture.taurus/.ui.home.HomeActivity } from null (pid=15302, uid=2000) not exported from uid 10650
at com.android.server.am.ActivityStackSupervisor.checkStartAnyActivityPermission(ActivityStackSupervisor.java:1866)
at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:762)
at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:562)
at com.android.server.am.ActivityStarter.startActivityMayWait(ActivityStarter.java:1279)
at com.android.server.am.ActivityStarter.execute(ActivityStarter.java:500)
at com.android.server.am.ActivityManagerService.startActivityAndWait(ActivityManagerService.java:5444)
at com.android.server.am.ActivityManagerShellCommand.runStartActivity(ActivityManagerShellCommand.java:474)
at com.android.server.am.ActivityManagerShellCommand.onCommand(ActivityManagerShellCommand.java:161)
at android.os.ShellCommand.exec(ShellCommand.java:103)
at com.android.server.am.ActivityManagerService.onShellCommand(ActivityManagerService.java:16600)
at android.os.Binder.shellCommand(Binder.java:629)
at android.os.Binder.onTransact(Binder.java:527)
at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3498)
at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3373)
at android.os.Binder.execTransact(Binder.java:726)'; Code: '255'


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