Selendroid无法识别模拟器

时间:2019-07-10 15:16:55

标签: java android-studio android-emulator selendroid

我执行以下命令来运行selendroid服务器:

java -jar selendroid-standalone-0.17.0-with-dependencies_fixed.jar -app app-debug.apk 

but its not detecting my emulator

selendroid服务器日志

C:\Users\obr\eclipse-workspace\sfwt>java -jar selendroid-standalone-0.17.0-with-dependencies_fixed.jar -app app-debug.apk
juil. 10, 2019 4:56:05 PM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Selendroid #################
juil. 10, 2019 4:56:05 PM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Configuration in use #################
juil. 10, 2019 4:56:05 PM io.selendroid.standalone.SelendroidLauncher main
INFO: io.selendroid.standalone.SelendroidConfiguration@5d6f64b1[
  port=4444
  timeoutEmulatorStart=300000
  supportedApps=[app-debug.apk]
  verbose=false
  emulatorPort=5560
  deviceScreenshot=false
  selendroidServerPort=8080
  keystore=<null>
  keystorePassword=<null>
  keystoreAlias=<null>
  emulatorOptions=<null>
  keepEmulator=false
  registrationUrl=<null>
  proxy=<null>
  serverHost=<null>
  keepAdbAlive=false
  maxSession=5
  maxInstances=5
  registerCycle=0
  noWebViewApp=false
  noClearData=false
  sessionTimeoutSeconds=1800
  forceReinstall=false
  logLevel=ERROR
  deviceLog=true
  serverStartTimeout=20000
  printHelp=false
  serverStartRetries=5
  folder=<null>
  deleteTmpFiles=true
]
juil. 10, 2019 4:56:05 PM io.selendroid.standalone.SelendroidLauncher launchServer
INFO: Starting Selendroid standalone on port 4444

juil. 10, 2019 4:56:05 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\obr\AppData\Local\Android\Sdk\build-tools\29.0.0\aapt.exe remove C:\Users\obr\eclipse-workspace\sfwt\app-debug.apk META-INF/CERT.RSA
juil. 10, 2019 4:56:05 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\obr\AppData\Local\Android\Sdk\build-tools\29.0.0\aapt.exe remove C:\Users\obr\eclipse-workspace\sfwt\app-debug.apk META-INF/CERT.RSA
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
        at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
        at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:143)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<init>(SelendroidStandaloneDriver.java:94)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(SelendroidStandaloneServer.java:52)
        at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
        at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

juil. 10, 2019 4:56:05 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\obr\AppData\Local\Android\Sdk\build-tools\29.0.0\aapt.exe remove C:\Users\obr\eclipse-workspace\sfwt\app-debug.apk META-INF/CERT.SF
juil. 10, 2019 4:56:05 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\obr\AppData\Local\Android\Sdk\build-tools\29.0.0\aapt.exe remove C:\Users\obr\eclipse-workspace\sfwt\app-debug.apk META-INF/CERT.SF
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
        at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
        at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:144)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<init>(SelendroidStandaloneDriver.java:94)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(SelendroidStandaloneServer.java:52)
        at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
        at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

juil. 10, 2019 4:56:05 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\obr\AppData\Local\Android\Sdk\build-tools\29.0.0\aapt.exe remove C:\Users\obr\eclipse-workspace\sfwt\app-debug.apk META-INF/ANDROIDD.SF
juil. 10, 2019 4:56:05 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\obr\AppData\Local\Android\Sdk\build-tools\29.0.0\aapt.exe remove C:\Users\obr\eclipse-workspace\sfwt\app-debug.apk META-INF/ANDROIDD.SF
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
        at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
        at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:145)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<init>(SelendroidStandaloneDriver.java:94)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(SelendroidStandaloneServer.java:52)
        at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
        at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

juil. 10, 2019 4:56:05 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\obr\AppData\Local\Android\Sdk\build-tools\29.0.0\aapt.exe remove C:\Users\obr\eclipse-workspace\sfwt\app-debug.apk META-INF/ANDROIDD.RSA
juil. 10, 2019 4:56:05 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\obr\AppData\Local\Android\Sdk\build-tools\29.0.0\aapt.exe remove C:\Users\obr\eclipse-workspace\sfwt\app-debug.apk META-INF/ANDROIDD.RSA
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
        at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
        at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:146)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<init>(SelendroidStandaloneDriver.java:94)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(SelendroidStandaloneServer.java:52)
        at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
        at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

juil. 10, 2019 4:56:05 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\obr\AppData\Local\Android\Sdk\build-tools\29.0.0\aapt.exe remove C:\Users\obr\eclipse-workspace\sfwt\app-debug.apk META-INF/NDKEYSTO.SF
juil. 10, 2019 4:56:05 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\obr\AppData\Local\Android\Sdk\build-tools\29.0.0\aapt.exe remove C:\Users\obr\eclipse-workspace\sfwt\app-debug.apk META-INF/NDKEYSTO.SF
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
        at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
        at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:147)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<init>(SelendroidStandaloneDriver.java:94)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(SelendroidStandaloneServer.java:52)
        at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
        at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

juil. 10, 2019 4:56:05 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\obr\AppData\Local\Android\Sdk\build-tools\29.0.0\aapt.exe remove C:\Users\obr\eclipse-workspace\sfwt\app-debug.apk META-INF/NDKEYSTO.RSA
juil. 10, 2019 4:56:06 PM io.selendroid.standalone.io.ShellCommand exec
SEVERE: Error executing command: C:\Users\obr\AppData\Local\Android\Sdk\build-tools\29.0.0\aapt.exe remove C:\Users\obr\eclipse-workspace\sfwt\app-debug.apk META-INF/NDKEYSTO.RSA
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:147)
        at io.selendroid.standalone.io.ShellCommand.exec(ShellCommand.java:49)
        at io.selendroid.standalone.android.impl.DefaultAndroidApp.deleteFileFromWithinApk(DefaultAndroidApp.java:112)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.deleteFileFromAppSilently(SelendroidServerBuilder.java:133)
        at io.selendroid.standalone.builder.SelendroidServerBuilder.resignApp(SelendroidServerBuilder.java:148)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.addToAppsStore(SelendroidStandaloneDriver.java:121)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.initApplicationsUnderTest(SelendroidStandaloneDriver.java:155)
        at io.selendroid.standalone.server.model.SelendroidStandaloneDriver.<init>(SelendroidStandaloneDriver.java:94)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.initializeSelendroidServer(SelendroidStandaloneServer.java:63)
        at io.selendroid.standalone.server.SelendroidStandaloneServer.<init>(SelendroidStandaloneServer.java:52)
        at io.selendroid.standalone.SelendroidLauncher.launchServer(SelendroidLauncher.java:65)
        at io.selendroid.standalone.SelendroidLauncher.main(SelendroidLauncher.java:117)

juil. 10, 2019 4:56:06 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\obr\Downloads\jdk-12.0.1_windows-x64_bin\jdk-12.0.1\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\obr\eclipse-workspace\sfwt\resigned-app-debug.apk -storepass android -keystore C:\Users\obr\.android\debug.keystore C:\Users\obr\eclipse-workspace\sfwt\app-debug.apk androiddebugkey
juil. 10, 2019 4:56:08 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Shell command output
-->
jar signed.

Warning:
The MD5withRSA algorithm specified for the -sigalg option is considered a security risk.
<--
juil. 10, 2019 4:56:08 PM io.selendroid.standalone.builder.SelendroidServerBuilder signTestServer
INFO: App signing output: jar signed.

Warning:
The MD5withRSA algorithm specified for the -sigalg option is considered a security risk.
juil. 10, 2019 4:56:08 PM io.selendroid.standalone.builder.SelendroidServerBuilder signTestServer
INFO: The app has been signed: C:\Users\obr\eclipse-workspace\sfwt\resigned-app-debug.apk
juil. 10, 2019 4:56:08 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\obr\AppData\Local\Android\Sdk\build-tools\29.0.0\aapt.exe dump badging C:\Users\obr\eclipse-workspace\sfwt\resigned-app-debug.apk
juil. 10, 2019 4:56:08 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Shell command output
-->
package: name='com.jesussilvestre.push002' versionCode='1' versionName='0.0.1'
sdkVersion:'19'
targetSdkVersion:'26'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'
uses-permission: name='android.permission.ACCESS_FINE_LOCATION'
uses-permission: name='android.permission.RECORD_AUDIO'
application-label:'worldtour2018'
application-icon-120:'res/mipmap-ldpi-v4/icon.png'
application-icon-160:'res/mipmap-mdpi-v4/icon.png'
application-icon-240:'res/mipmap-hdpi-v4/icon.png'
application-icon-320:'res/mipmap-xhdpi-v4/icon.png'
application-icon-480:'res/mipmap-xxhdpi-v4/icon.png'
application-icon-640:'res/mipmap-xxxhdpi-v4/icon.png'
application: label='worldtour2018' icon='res/mipmap-mdpi-v4/icon.png'
application-debuggable
launchable-activity: name='com.jesussilvestre.push002.MainActivity'  label='worldtour2018' icon=''
feature-group: label=''
  uses-feature: name='android.hardware.location'
  uses-feature: name='android.hardware.location.gps'
  uses-feature: name='android.hardware.faketouch'
  uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'
  uses-feature: name='android.hardware.microphone'
  uses-implied-feature: name='android.hardware.microphone' reason='requested android.permission.RECORD_AUDIO permission'
main
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '--_--'
densities: '120' '160' '240' '320' '480' '640'
<--
juil. 10, 2019 4:56:08 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\obr\AppData\Local\Android\Sdk\build-tools\29.0.0\aapt.exe dump badging C:\Users\obr\eclipse-workspace\sfwt\resigned-app-debug.apk
juil. 10, 2019 4:56:08 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Shell command output
-->
package: name='com.jesussilvestre.push002' versionCode='1' versionName='0.0.1'
sdkVersion:'19'
targetSdkVersion:'26'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.ACCESS_COARSE_LOCATION'
uses-permission: name='android.permission.ACCESS_FINE_LOCATION'
uses-permission: name='android.permission.RECORD_AUDIO'
application-label:'worldtour2018'
application-icon-120:'res/mipmap-ldpi-v4/icon.png'
application-icon-160:'res/mipmap-mdpi-v4/icon.png'
application-icon-240:'res/mipmap-hdpi-v4/icon.png'
application-icon-320:'res/mipmap-xhdpi-v4/icon.png'
application-icon-480:'res/mipmap-xxhdpi-v4/icon.png'
application-icon-640:'res/mipmap-xxxhdpi-v4/icon.png'
application: label='worldtour2018' icon='res/mipmap-mdpi-v4/icon.png'
application-debuggable
launchable-activity: name='com.jesussilvestre.push002.MainActivity'  label='worldtour2018' icon=''
feature-group: label=''
  uses-feature: name='android.hardware.location'
  uses-feature: name='android.hardware.location.gps'
  uses-feature: name='android.hardware.faketouch'
  uses-implied-feature: name='android.hardware.faketouch' reason='default feature for all apps'
  uses-feature: name='android.hardware.microphone'
  uses-implied-feature: name='android.hardware.microphone' reason='requested android.permission.RECORD_AUDIO permission'
main
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '--_--'
densities: '120' '160' '240' '320' '480' '640'
<--
juil. 10, 2019 4:56:08 PM io.selendroid.standalone.server.model.SelendroidStandaloneDriver addToAppsStore
INFO: App com.jesussilvestre.push002:0.0.1 has been added to selendroid standalone server.
juil. 10, 2019 4:56:08 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\obr\AppData\Local\Android\Sdk\build-tools\29.0.0\aapt.exe remove C:\Users\obr\AppData\Local\Temp\android-driver695652852039634379.apk META-INF/MANIFEST.MF
juil. 10, 2019 4:56:08 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Shell command output
-->

<--
juil. 10, 2019 4:56:08 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\obr\AppData\Local\Android\Sdk\build-tools\29.0.0\aapt.exe remove C:\Users\obr\AppData\Local\Temp\android-driver695652852039634379.apk META-INF/CERT.RSA
juil. 10, 2019 4:56:08 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Shell command output
-->

<--
juil. 10, 2019 4:56:08 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\obr\AppData\Local\Android\Sdk\build-tools\29.0.0\aapt.exe remove C:\Users\obr\AppData\Local\Temp\android-driver695652852039634379.apk META-INF/CERT.SF
juil. 10, 2019 4:56:08 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Shell command output
-->

<--



juil. 10, 2019 4:56:08 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\obr\Downloads\jdk-12.0.1_windows-x64_bin\jdk-12.0.1\bin\jarsigner.exe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\obr\AppData\Local\Temp\resigned-android-driver695652852039634379.apk -storepass android -keystore C:\Users\obr\.android\debug.keystore C:\Users\obr\AppData\Local\Temp\android-driver695652852039634379.apk androiddebugkey
juil. 10, 2019 4:56:09 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Shell command output
-->
jar signed.

Warning:
The signer's certificate is self-signed.
The MD5withRSA algorithm specified for the -sigalg option is considered a security risk.
<--
juil. 10, 2019 4:56:09 PM io.selendroid.standalone.builder.SelendroidServerBuilder signTestServer
INFO: App signing output: jar signed.

Warning:
The signer's certificate is self-signed.
The MD5withRSA algorithm specified for the -sigalg option is considered a security risk.
juil. 10, 2019 4:56:09 PM io.selendroid.standalone.builder.SelendroidServerBuilder signTestServer
INFO: The app has been signed: C:\Users\obr\AppData\Local\Temp\resigned-android-driver695652852039634379.apk
juil. 10, 2019 4:56:10 PM io.selendroid.standalone.android.impl.DefaultDeviceManager initializeAdbConnection
INFO: my devices: Nexus_4_API_17
juil. 10, 2019 4:56:10 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\obr\AppData\Local\Android\Sdk\tools\android.bat list avd
juil. 10, 2019 4:56:10 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Shell command output
-->
**************************************************************************
The "android" command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools\bin\sdkmanager.bat
and tools\bin\avdmanager.bat
**************************************************************************

Invoking "C:\Users\obr\AppData\Local\Android\Sdk\tools\bin\avdmanager" list avd

Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
        at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
        at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
        at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
        at com.android.sdklib.tool.AvdManagerCli.run(AvdManagerCli.java:213)
        at com.android.sdklib.tool.AvdManagerCli.main(AvdManagerCli.java:200)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
        ... 5 more
<--
juil. 10, 2019 4:56:10 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Executing shell command: C:\Users\obr\AppData\Local\Android\Sdk\platform-tools\adb.exe devices
juil. 10, 2019 4:56:10 PM io.selendroid.standalone.io.ShellCommand exec
INFO: Shell command output
-->
List of devices attached
emulator-5554   device
<--
juil. 10, 2019 4:56:10 PM io.selendroid.standalone.server.model.DeviceStore addEmulators
INFO: No emulators has been found.
juil. 10, 2019 4:56:10 PM io.selendroid.standalone.server.model.DeviceStore initAndroidDevices
WARNING: Warning: io.selendroid.server.common.exceptions.SelendroidException: No android virtual devices were found. Please start the android tool and create emulators and restart the selendroid-standalone or plugin an Android hardware device via USB.
juil. 10, 2019 4:56:10 PM io.selendroid.standalone.server.SelendroidStandaloneServer start
INFO: Selendroid standalone server has been started on port: 4444
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.PlatformDependent0 (file:/C:/Users/obr/eclipse-workspace/sfwt/selendroid-standalone-0.17.0-with-dependencies_fixed.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.PlatformDependent0
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
juil. 10, 2019 4:56:10 PM io.netty.util.internal.PlatformDependent <clinit>
INFO: Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system unstability.


***********************************************
my emulator settings :

usb debugging activated 


Name: Nexus_4_API_17

CPU/ABI: Intel Atom (x86)

Path: C:\Users\obr\.android\avd\Nexus_4_API_17.avd

Target: default [] (API level 17)

Skin: nexus_4

SD Card: 512 MB

fastboot.chosenSnapshotFile: 

runtime.network.speed: full

hw.accelerometer: yes

hw.device.name: Nexus 4

hw.lcd.width: 768

hw.initialOrientation: Portrait

image.androidVersion.api: 17

tag.id: default

hw.mainKeys: no

hw.camera.front: emulated

avd.ini.displayname: Nexus 4 API 17

hw.gpu.mode: off

hw.ramSize: 1536

PlayStore.enabled: false

fastboot.forceColdBoot: no

hw.cpu.ncore: 4

hw.keyboard: yes

hw.sensors.proximity: yes

hw.dPad: no

hw.lcd.height: 1280

vm.heapSize: 80

skin.dynamic: yes

hw.device.manufacturer: Google

hw.gps: yes

hw.audioInput: yes

image.sysdir.1: system-images\android-17\default\x86\

showDeviceFrame: yes

hw.camera.back: virtualscene

AvdId: Nexus_4_API_17

hw.lcd.density: 320

hw.arc: false

hw.device.hash2: MD5:df9f28d3300e90cad14652913638e0a9

fastboot.forceChosenSnapshotBoot: no

fastboot.forceFastBoot: yes

hw.trackBall: no

hw.battery: yes

hw.sdCard: yes

tag.display: 

runtime.network.latency: none

disk.dataPartition.size: 800M

hw.sensors.orientation: yes

avd.ini.encoding: UTF-8
*

如何解决这个问题?

0 个答案:

没有答案