OS:Android 4.4.2
Appium : 1.3.4

在真机上运行时,提示 error: Failed to start an Appium session, err was: Error: Permission to start activity denied。而在模拟器上运行通过。求指教!

error: Failed to start an Appium session, err was: Error: Permission to start activity den
ied.
info: [debug] Error: Permission to start activity denied.
    at null.<anonymous> (d:\user\Application Data\npm\node_modules\appium\node_modu
les\appium-adb\lib\adb.js:1135:19)
    at null.<anonymous> (d:\user\Application Data\npm\node_modules\appium\node_modu
les\appium-adb\lib\adb.js:172:9)
    at ChildProcess.exithandler (child_process.js:646:7)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)
info: [debug] Responding to client with error: {"status":33,"value":{"message":"A new sess
ion could not be created. (Original error: Permission to start activity denied.)","origVal
ue":"Permission to start activity denied."},"sessionId":null}`

日志请用代码块。


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