5
我有一個運行Android 7.0(安全補丁程序級別:2016年11月5日;內部版本號:N5D91L)的Nexus 5X,並且已啓用USB調試功能插入到我的Mac中。Selendroid無法識別Android 7設備
ADB識別設備(所以this solution是不相關):
$ adb devices -l
List of devices attached
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
016e07928f462163 device usb:337641472X product:bullhead model:Nexus_5X device:bullhead
我打開Selendroid服務器using the demo setup上:
java -jar selendroid-standalone-0.17.0-with-dependencies.jar -app selendroid-test-app-0.17.0.apk
但是當我檢查http://localhost:4444/wd/hub/status
,該設備沒有列supportedDevices
:
{
"value": {
"os": {
"name": "Mac OS X",
"arch": "x86_64",
"version": "10.11.6"
},
"build": {
"browserName": "selendroid",
"version": "0.17.0"
},
"supportedDevices": [],
"supportedApps": [
{
"mainActivity": "io.selendroid.testapp.HomeScreenActivity",
"appId": "io.selendroid.testapp:0.17.0",
"basePackage": "io.selendroid.testapp"
},
{
"mainActivity": "io.selendroid.androiddriver.WebViewActivity",
"appId": "io.selendroid.androiddriver:0.17.0",
"basePackage": "io.selendroid.androiddriver"
}
]
},
"status": 0
}
相同的基本過程將顯示Android 6設備或模擬器。
我該如何讓Selendroid識別我的Android 7設備?