13450393450 发表于 2019-4-9 18:16:19

安卓手机调试,执行就报错。

本帖最后由 TestWriter 于 2019-4-18 09:43 编辑

Log:An unknown server-side error occurred while processing the command. Original error: java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission
      at android.os.Parcel.readException(Parcel.java:1599)
      at android.os.Parcel.readException(Parcel.java:1552)
      at android.app.IUiAutomationConnection$Stub$Proxy.injectInputEvent(IUiAutomationConnection.java:273)
      at android.app.UiAutomation.injectInputEvent(UiAutomation.java:440)
      at android.support.test.uiautomator.UiAutomatorBridge.injectInputEvent(UiAutomatorBridge.java:86)
      at android.support.test.uiautomator.GestureController.performGesture(GestureController.java:150)
      at android.support.test.uiautomator.UiObject2.click(UiObject2.java:343)
      at io.appium.uiautomator2.model.UiObject2Element.click(UiObject2Element.java:45)
      at io.appium.uiautomator2.handler.Click.safeHandle(Click.java:40)
      at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:56)
      at io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:208)
      at io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:199)
      at io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
      at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
      at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)
      at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
      at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)
      at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:250)
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
      at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
      at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)
      at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
      at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:611)
      at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:514)
      at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:468)
      at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438)
      at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)
      at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
      at java.lang.Thread.run(Thread.java:818)

----------------------------------

TestWriter 发表于 2019-4-12 09:59:01

TW版本号是?安卓版本号是?

海海豚 发表于 2019-4-12 10:12:07

是应用没有加权限?

qqq911 发表于 2019-4-12 10:27:38

没权限

abcsell 发表于 2019-4-12 10:49:47

权限不足的

104~牛牛 发表于 2019-4-12 10:54:14

手机需要root权限吧

jingzizx 发表于 2019-4-12 10:59:33

感觉权限问题
页: [1]
查看完整版本: 安卓手机调试,执行就报错。