seveniruby/AppCrawler

error when package

zhangpeng23796 opened this issue · 0 comments

There is error as follows when package. I clone code from git, there is no change.

[warn] /Users/zhj/IdeaProjects/AppCrawler-master/src/main/scala/com/testerhome/appcrawler/driver/AppiumClient.scala:51:17: a pure expression does nothing in statement position
[warn] case _ => command
[warn] ^
[error] /Users/zhj/IdeaProjects/AppCrawler-master/src/main/scala/com/testerhome/appcrawler/plugin/AndroidTrace.scala:3:16: object jdi is not a member of package com.sun
[error] import com.sun.jdi.event._
[error] ^
[error] /Users/zhj/IdeaProjects/AppCrawler-master/src/main/scala/com/testerhome/appcrawler/plugin/AndroidTrace.scala:4:16: object jdi is not a member of package com.sun
[error] import com.sun.jdi.request.{EventRequest, EventRequestManager}
[error] ^
[error] /Users/zhj/IdeaProjects/AppCrawler-master/src/main/scala/com/testerhome/appcrawler/plugin/AndroidTrace.scala:5:16: object jdi is not a member of package com.sun
[error] import com.sun.jdi.{Bootstrap, ReferenceType, VirtualMachine}
[error] ^
[error] /Users/zhj/IdeaProjects/AppCrawler-master/src/main/scala/com/testerhome/appcrawler/plugin/AndroidTrace.scala:6:16: object tools is not a member of package com.sun
[error] import com.sun.tools.jdi.SocketAttachingConnector
[error] ^
[error] /Users/zhj/IdeaProjects/AppCrawler-master/src/main/scala/com/testerhome/appcrawler/plugin/AndroidTrace.scala:17:28: not found: type EventRequestManager
[error] var eventRequestManager: EventRequestManager = _
[error] ^
[error] /Users/zhj/IdeaProjects/AppCrawler-master/src/main/scala/com/testerhome/appcrawler/plugin/AndroidTrace.scala:18:11: not found: type VirtualMachine
[error] var vm: VirtualMachine = _
[error] ^
[error] /Users/zhj/IdeaProjects/AppCrawler-master/src/main/scala/com/testerhome/appcrawler/plugin/AndroidTrace.scala:21:15: not found: value Bootstrap
[error] val sac = Bootstrap.virtualMachineManager().attachingConnectors().toArray.filter(.isInstanceOf[SocketAttachingConnector]).head.asInstanceOf[SocketAttachingConnector]
[error] ^
[error] /Users/zhj/IdeaProjects/AppCrawler-master/src/main/scala/com/testerhome/appcrawler/plugin/AndroidTrace.scala:21:101: not found: type SocketAttachingConnector
[error] val sac = Bootstrap.virtualMachineManager().attachingConnectors().toArray.filter(
.isInstanceOf[SocketAttachingConnector]).head.asInstanceOf[SocketAttachingConnector]
[error] ^
[error] /Users/zhj/IdeaProjects/AppCrawler-master/src/main/scala/com/testerhome/appcrawler/plugin/AndroidTrace.scala:21:146: not found: type SocketAttachingConnector
[error] val sac = Bootstrap.virtualMachineManager().attachingConnectors().toArray.filter(_.isInstanceOf[SocketAttachingConnector]).head.asInstanceOf[SocketAttachingConnector]
[error] ^
[error] /Users/zhj/IdeaProjects/AppCrawler-master/src/main/scala/com/testerhome/appcrawler/plugin/AndroidTrace.scala:97:19: not found: value EventRequest
[error] val suspend = EventRequest.SUSPEND_EVENT_THREAD
[error] ^
[warn] 7 warnings found
[error] 10 errors found
[error] (Compile / compileIncremental) Compilation failed
[error] Total time: 3 s, completed 2018-1-8 13:20:03