• 求解答:一直报这个错,求帮忙!
    命令:java -jar appcrawler-1.7.1.jar -a xueqiu.apk --capability"appPackage=com.xueqiu.android,appActivity=.view.WelcomeActivityAlias"

    报错:
    Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserExceptio
    n: Could not start a new session. Possible causes are invalid address of the rem
    ote server or browser start-up failure.
    Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
    System info: host: 'FH2GSADPEVC4GUC', ip: '10.88.122.10', os.name: 'Windows 7',
    os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_101'
    Driver info: driver.version: AndroidDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.ja
    va:665)
    at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGener
    icMobileDriver.java:40)
    at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
    at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.jav
    a:1)
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriv
    er.java:249)
    at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.jav
    a:131)
    at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.jav
    a:144)
    at io.appium.java_client.DefaultGenericMobileDriver.(DefaultGeneri
    cMobileDriver.java:36)
    at io.appium.java_client.AppiumDriver.(AppiumDriver.java:114)
    at io.appium.java_client.AppiumDriver.(AppiumDriver.java:132)
    at io.appium.java_client.android.AndroidDriver.(AndroidDriver.java
    :92)
    at com.xueqiu.qa.appcrawler.AndroidCrawler.setupAppium(AndroidCrawler.sc
    ala:37)
    at com.xueqiu.qa.appcrawler.Crawler.start(Crawler.scala:130)
    at com.xueqiu.qa.appcrawler.AppCrawler$.startCrawl(AppCrawler.scala:283)

    at com.xueqiu.qa.appcrawler.AppCrawler$.main(AppCrawler.scala:262)
    at com.xueqiu.qa.appcrawler.AppCrawler.main(AppCrawler.scala)
    Caused by: org.openqa.selenium.WebDriverException: org.apache.http.conn.HttpHost
    ConnectException: Connect to 127.0.0.1:4723 [/127.0.0.1] failed: Connection refu
    sed: connect
    Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
    System info: host: 'FH2GSADPEVC4GUC', ip: '10.88.122.10', os.name: 'Windows 7',
    os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_101'
    Driver info: driver.version: AndroidDriver
    at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumComm
    andExecutor.java:84)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.ja
    va:644)
    ... 15 more
    Caused by: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:4
    723 [/127.0.0.1] failed: Connection refused: connect
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect
    (DefaultHttpClientConnectionOperator.java:158)
    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(
    PoolingHttpClientConnectionManager.java:353)
    at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClie
    ntExec.java:380)
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.
    java:236)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java
    :184)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java
    :110)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttp
    Client.java:184)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttp
    Client.java:71)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttp
    Client.java:55)
    at org.openqa.selenium.remote.internal.ApacheHttpClient.fallBackExecute(
    ApacheHttpClient.java:144)
    at org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHt
    tpClient.java:90)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExe
    cutor.java:142)
    at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumComm
    andExecutor.java:69)
    ... 16 more
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketI
    mpl.java:85)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.ja
    va:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocket
    Impl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java
    :188)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocke
    t(PlainConnectionSocketFactory.java:74)
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect
    (DefaultHttpClientConnectionOperator.java:141)
    ... 29 more