• 感谢指点,我研究一下!

  • 向大佬求助,帮忙看下这个报错是什么问题?感谢🙏

    [WARNING] /Users/xinmei0413/AppCrawler/src/main/scala/com/testerhome/appcrawler/DataObject.scala:91: warning: non-variable type argument String in type pattern scala.collection.Map[String,_] is unchecked since it is eliminated by erasure
    [WARNING]           case (key: String, valueMap: scala.collection.Map[String, _]) => {
    [WARNING]                                                         ^
    [WARNING] /Users/xinmei0413/AppCrawler/src/main/scala/com/testerhome/appcrawler/TData.scala:144: warning: non-variable type argument String in type pattern scala.collection.Map[String,_] is unchecked since it is eliminated by erasure
    [WARNING]           case (key: String, valueMap: scala.collection.Map[String, _]) => {
    [WARNING]                                                         ^
    [WARNING] /Users/xinmei0413/AppCrawler/src/main/scala/com/testerhome/appcrawler/TData.scala:203: warning: non-variable type argument String in type scala.collection.mutable.Map[String,Any] is unchecked since it is eliminated by erasure
    [WARNING]         if (origin(keys.head).isInstanceOf[mutable.Map[String, Any]] == false) {
    [WARNING]                                           ^
    [WARNING] /Users/xinmei0413/AppCrawler/src/main/scala/com/testerhome/appcrawler/TData.scala:224: warning: abstract type K in type pattern scala.collection.immutable.Map[K,_] (the underlying of Map[K,_]) is unchecked since it is eliminated by erasure
    [WARNING]               case (v1: Map[K, _], v2: Map[K, _]) => deepMerge(v1, v2)
    [WARNING]                         ^
    [WARNING] /Users/xinmei0413/AppCrawler/src/main/scala/com/testerhome/appcrawler/TData.scala:224: warning: abstract type K in type pattern scala.collection.immutable.Map[K,_] (the underlying of Map[K,_]) is unchecked since it is eliminated by erasure
    [WARNING]               case (v1: Map[K, _], v2: Map[K, _]) => deepMerge(v1, v2)
    [WARNING]                                        ^
    [WARNING] /Users/xinmei0413/AppCrawler/src/main/scala/com/testerhome/appcrawler/TData.scala:348: warning: non-variable type argument String in type pattern scala.collection.immutable.Map[String,_] (the underlying of Map[String,_]) is unchecked since it is eliminated by erasure
    [WARNING]       case kv: Map[String, _] => {
    [WARNING]                ^
    [WARNING] /Users/xinmei0413/AppCrawler/src/main/scala/com/testerhome/appcrawler/driver/AppiumClient.scala:51: warning: a pure expression does nothing in statement position
    [WARNING]       case _ => command
    [WARNING]                 ^
    [ERROR] /Users/xinmei0413/AppCrawler/src/main/scala/com/testerhome/appcrawler/driver/AppiumClient.scala:226: error: too many arguments (2) for method press: (x$1: io.appium.java_client.touch.offset.PointOption[T] forSome { type T <: io.appium.java_client.touch.offset.PointOption[T] })T
    [ERROR]           .press((screenWidth * startX).toInt, (screenHeight * startY).toInt)
    [ERROR]                                                                        ^
    [ERROR] /Users/xinmei0413/AppCrawler/src/main/scala/com/testerhome/appcrawler/driver/AppiumClient.scala:278: error: overloaded method value tap with alternatives:
    [ERROR]   (x$1: io.appium.java_client.touch.offset.PointOption[T] forSome { type T <: io.appium.java_client.touch.offset.PointOption[T] })T <and>
    [ERROR]   (x$1: io.appium.java_client.touch.TapOptions)T
    [ERROR]  cannot be applied to (org.openqa.selenium.WebElement)
    [ERROR]     driver.performTouchAction(new TouchAction(driver).tap(currentElement))
    [ERROR]                                                       ^
    [ERROR] /Users/xinmei0413/AppCrawler/src/main/scala/com/testerhome/appcrawler/driver/AppiumClient.scala:283: error: overloaded method value longPress with alternatives:
    [ERROR]   (x$1: io.appium.java_client.touch.offset.PointOption[T] forSome { type T <: io.appium.java_client.touch.offset.PointOption[T] })T <and>
    [ERROR]   (x$1: io.appium.java_client.touch.LongPressOptions)T
    [ERROR]  cannot be applied to (org.openqa.selenium.WebElement)
    [ERROR]     driver.performTouchAction(new TouchAction(driver).longPress(currentElement))
    [ERROR]                                                       ^
    [ERROR] /Users/xinmei0413/AppCrawler/src/main/scala/com/testerhome/appcrawler/driver/MacacaDriver.scala:183: error: value swipe is not a member of macaca.client.MacacaClient
    [ERROR]     retry(driver.swipe(
    [ERROR]                  ^
    [WARNING] 7 warnings found
    [ERROR] four errors found
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  10.685 s
    [INFO] Finished at: 2019-11-13T10:23:38+08:00
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.4.2:compile (scala-compile-first) on project appcrawler: wrap: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]