Selendroid cannot recognize Android 7 device

I have a Nexus 5X running Android 7.0 (security patch level: November 5, 2016, build number: N5D91L) connected to my Mac with USB debugging turned on.

ADB recognizes the device (therefore, this solution does not matter):

$ 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 

I turn on the Selendroid server using a demo installation :

 java -jar selendroid-standalone-0.17.0-with-dependencies.jar -app selendroid-test-app-0.17.0.apk 

But when I check http://localhost:4444/wd/hub/status , the device is not listed in 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 } 

In the same basic procedure, an Android 6 device or emulator will be shown.

How can I get Selendroid to recognize an Android 7 device?

+5
source share
1 answer

I may be missing something, but http://selendroid.io/ states that it has "Android Target API API Support (10 to 19)." Android 7 is API 24, so it is not supported. I had a Selendroid that ran successfully with higher APIs than 19 (of course, 23), and then couldn't handle any actions, but maybe it just can't run 24 at all?

Maybe it's time to try Apium ...

0
source

Source: https://habr.com/ru/post/1260899/


All Articles