Unable to run Appium server using Appium v1.17.1-1

0

I run Appium in Windows 10.Appium configuration is below:

{
  "platformName": "Android",
  "platformVersion": "9",
  "appPackage": "com.xunmeng.pinduoduo",
  "appActivity": "com.xunmeng.pinduoduo.ui.activity.HomeActivity",
  "resetKeyboard": true,
  "noReset": true
}

error info:

An unknown server-side error occurred while processing the command. Original error: Cannot start the 'com.xunmeng.pinduoduo' 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:\AndroidSDK\platform-tools\adb.exe -P 5037 -s 210358ff shell am start -W -n com.xunmeng.pinduoduo/com.xunmeng.pinduoduo.ui.activity.HomeActivity -S' exited with code 4294967295'; Stderr: 'Security exception: Permission Denial: starting Intent { flg=0x10000000 cmp=com.xunmeng.pinduoduo/.ui.activity.HomeActivity } from null (pid=6987, uid=2000) not exported from uid 10194 java.lang.SecurityException: Permission Denial: starting Intent { flg=0x10000000 cmp=com.xunmeng.pinduoduo/.ui.activity.HomeActivity } from null (pid=6987, uid=2000) not exported from uid 10194 at com.android.server.am.ActivityStackSupervisor.checkStartAnyActivityPermission(ActivityStackSupervisor.java:1864) at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:751) at com.android.server.am.ActivityStarter.startActivity(ActivityStarter.java:552) at com.android.server.am.ActivityStarter.startActivityMayWait(ActivityStarter.java:1214) at com.android.server.am.ActivityStarter.execute(ActivityStarter.java:494) at com.android.server.am.ActivityManagerService.startActivityAndWait(ActivityManagerService.java:5506) 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:16700) at android.os.Binder.shellCommand(Binder.java:634) at android.os.Binder.onTransact(Binder.java:532) at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3498) at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:3409) at android.os.Binder.execTransact(Binder.java:735)'; Code: '4294967295'

java
android
automated-tests
appium
asked on Stack Overflow Jun 13, 2020 by Frank Chen

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0