error
在執行命令的時候,成功了一次,我后來改了一下腳本中的輸入文本,再運行的時候就一直提示這個,成功不了,求解答。
monkey -f mook.script 2
** Error: SecurityException while injecting event.
Events injected: 1
## Network stats: elapsed time=46ms (0ms mobile, 0ms wifi, 46ms not connected)
在執行命令的時候,成功了一次,我后來改了一下腳本中的輸入文本,再運行的時候就一直提示這個,成功不了,求解答。
monkey -f mook.script 2
** Error: SecurityException while injecting event.
Events injected: 1
## Network stats: elapsed time=46ms (0ms mobile, 0ms wifi, 46ms not connected)
2018-11-06
舉報
2022-03-26
。。。誤點擊贊無法取消。。。@慕課網這個功能可以有啊~~不是,出現類似arg1這樣參數主要是因為你的環境中沒有android源碼,老師的環境中有,所有他的直接就出來了,而你的出來的是arg這樣的名稱
2018-11-06
具體為什么運行一遍之后又因為權限問題不能運行我也不清楚,但是后來加了參數
--ignore-security-exceptions
忽略了權限問題就可以正常運行了。大家如果遇到了也可以試試,如:
monkey -f mook.script?--ignore-security-exceptions 2