繁体   English   中英

SelendroidException:找不到android虚拟设备

SelendroidException: No android virtual devices were found

提示:本站收集StackOverFlow近2千万问答,支持中英文搜索,鼠标放在语句上弹窗显示对应的参考中文或英文, 本站还提供   中文繁体   英文版本   中英对照 版本,有任何建议请联系yoyou2525@163.com。

我正在尝试在系统中设置Selendroid。 我已经设置了ANDROID_HOME,JAVA_HOME并安装了android虚拟设备。

C:\Users\sai>echo %ANDROID_HOME%
C:\Android\android-sdk

C:\Users\sai>echo %JAVA_HOME%
C:\Java\jdk1.6.0_26

C:\Android\android-sdk\tools>android.bat list avds
Available Android Virtual Devices:
    Name: SelendroidAVD
  Device: Nexus S (Google)
    Path: C:\Users\sai\.android\avd\SelendroidAVD.avd
  Target: Android 2.3.3 (API level 10)
 Tag/ABI: default/armeabi
    Skin: 480x800

当我尝试使用以下命令启动服务器时,出现了Selendroid异常。

java -jar selendroid-standalone-0.12.0-with-dependencies.jar -aut selendroid
-test-app-0.12.0.apk

apk文件已成功安装,但无法识别Android AVD,并引发以下异常。

io.selendroid.exceptions.SelendroidException: No android virtu
al devices were found. Please start the android tool and create emulators and re
start the selendroid-standalone or plugin an Android hardware device via USB.
selendroid-standalone server has been started on port: 4444

完整的日志:

F:\>java -jar selendroid-standalone-0.12.0-with-dependencies.jar -aut selendroid
-test-app-0.12.0.apk
################# Selendroid #################
################# Configuration in use #################
io.selendroid.SelendroidConfiguration@12c9b19[
  port=4444
  timeoutEmulatorStart=300000
  supportedApps=[selendroid-test-app-0.12.0.apk]
  verbose=false
  emulatorPort=5560
  deviceScreenshot=false
  selendroidServerPort=8080
  keystore=<null>
  keystorePassword=<null>
  keystoreAlias=<null>
  emulatorOptions=<null>
  registrationUrl=<null>
  proxy=<null>
  serverHost=<null>
  keepAdbAlive=false
  noWebViewApp=false
  noClearData=false
  sessionTimeoutSeconds=1800
  forceReinstall=false
  logLevel=ERROR
  deviceLog=true
  serverStartTimeout=20000
  printHelp=false
]
Jan 14, 2015 11:54:11 PM io.selendroid.SelendroidLauncher launchServer
INFO: Starting selendroid-server port 4444
Jan 14, 2015 11:54:11 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve F:\\selendroid-test-app-0.12.0.apk META-INF/MANIFEST.MF
Jan 14, 2015 11:54:11 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve F:\\selendroid-test-app-0.12.0.apk META-INF/CERT.RSA
Jan 14, 2015 11:54:11 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve F:\\selendroid-test-app-0.12.0.apk META-INF/CERT.SF
Jan 14, 2015 11:54:11 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve F:\\selendroid-test-app-0.12.0.apk META-INF/ANDROIDD.SF
Jan 14, 2015 11:54:11 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve F:\\selendroid-test-app-0.12.0.apk META-INF/ANDROIDD.RSA
Jan 14, 2015 11:54:11 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve F:\\selendroid-test-app-0.12.0.apk META-INF/NDKEYSTO.SF
Jan 14, 2015 11:54:11 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve F:\\selendroid-test-app-0.12.0.apk META-INF/NDKEYSTO.RSA
Jan 14, 2015 11:54:11 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Java\jdk1.6.0_26\bin\jarsigner.exe -sigalg MD5withRS
A -digestalg SHA1 -signedjar F:\\resigned-selendroid-test-app-0.12.0.apk -storep
ass android -keystore C:\Users\sai\.android\debug.keystore F:\\selendroid-test-a
pp-0.12.0.apk androiddebugkey
Jan 14, 2015 11:54:14 PM io.selendroid.builder.SelendroidServerBuilder signTestS
erver
INFO: App signing output:
Jan 14, 2015 11:54:14 PM io.selendroid.builder.SelendroidServerBuilder signTestS
erver
INFO: The app has been signed: F:\\resigned-selendroid-test-app-0.12.0.apk
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe dump
 badging F:\\resigned-selendroid-test-app-0.12.0.apk
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe dump
 badging F:\\resigned-selendroid-test-app-0.12.0.apk
Jan 14, 2015 11:54:14 PM io.selendroid.server.model.SelendroidStandaloneDriver i
nitApplicationsUnderTest
INFO: App io.selendroid.testapp:0.12.0 has been added to selendroid standalone s
erver.
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve C:\Users\sai\AppData\Local\Temp\android-driver8494728849163801343.apk META-IN
F/MANIFEST.MF
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve C:\Users\sai\AppData\Local\Temp\android-driver8494728849163801343.apk META-IN
F/CERT.RSA
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve C:\Users\sai\AppData\Local\Temp\android-driver8494728849163801343.apk META-IN
F/CERT.SF
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve C:\Users\sai\AppData\Local\Temp\android-driver8494728849163801343.apk META-IN
F/ANDROIDD.SF
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve C:\Users\sai\AppData\Local\Temp\android-driver8494728849163801343.apk META-IN
F/ANDROIDD.RSA
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve C:\Users\sai\AppData\Local\Temp\android-driver8494728849163801343.apk META-IN
F/NDKEYSTO.SF
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve C:\Users\sai\AppData\Local\Temp\android-driver8494728849163801343.apk META-IN
F/NDKEYSTO.RSA
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Java\jdk1.6.0_26\bin\jarsigner.exe -sigalg MD5withRS
A -digestalg SHA1 -signedjar C:\Users\sai\AppData\Local\Temp\resigned-android-dr
iver8494728849163801343.apk -storepass android -keystore C:\Users\sai\.android\d
ebug.keystore C:\Users\sai\AppData\Local\Temp\android-driver8494728849163801343.
apk androiddebugkey
Jan 14, 2015 11:54:15 PM io.selendroid.builder.SelendroidServerBuilder signTestS
erver
INFO: App signing output:
Jan 14, 2015 11:54:15 PM io.selendroid.builder.SelendroidServerBuilder signTestS
erver
INFO: The app has been signed: C:\Users\sai\AppData\Local\Temp\resigned-android-
driver8494728849163801343.apk
Jan 14, 2015 11:54:17 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\tools\android.bat list avds
Jan 14, 2015 11:54:21 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\platform-tools\adb.exe devices
Jan 14, 2015 11:54:21 PM io.selendroid.server.model.DeviceStore addEmulators
INFO: No emulators has been found.
Jan 14, 2015 11:54:21 PM io.selendroid.server.model.DeviceStore initAndroidDevic
es
WARNING: Warning: io.selendroid.exceptions.SelendroidException: No android virtu
al devices were found. Please start the android tool and create emulators and re
start the selendroid-standalone or plugin an Android hardware device via USB.
selendroid-standalone server has been started on port: 4444












F:\>java -jar selendroid-standalone-0.12.0-with-dependencies.jar -aut selendroid
-test-app-0.12.0.apk
################# Selendroid #################
################# Configuration in use #################
io.selendroid.SelendroidConfiguration@12c9b19[
  port=4444
  timeoutEmulatorStart=300000
  supportedApps=[selendroid-test-app-0.12.0.apk]
  verbose=false
  emulatorPort=5560
  deviceScreenshot=false
  selendroidServerPort=8080
  keystore=<null>
  keystorePassword=<null>
  keystoreAlias=<null>
  emulatorOptions=<null>
  registrationUrl=<null>
  proxy=<null>
  serverHost=<null>
  keepAdbAlive=false
  noWebViewApp=false
  noClearData=false
  sessionTimeoutSeconds=1800
  forceReinstall=false
  logLevel=ERROR
  deviceLog=true
  serverStartTimeout=20000
  printHelp=false
]
Jan 14, 2015 11:54:11 PM io.selendroid.SelendroidLauncher launchServer
INFO: Starting selendroid-server port 4444
Jan 14, 2015 11:54:11 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve F:\\selendroid-test-app-0.12.0.apk META-INF/MANIFEST.MF
Jan 14, 2015 11:54:11 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve F:\\selendroid-test-app-0.12.0.apk META-INF/CERT.RSA
Jan 14, 2015 11:54:11 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve F:\\selendroid-test-app-0.12.0.apk META-INF/CERT.SF
Jan 14, 2015 11:54:11 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve F:\\selendroid-test-app-0.12.0.apk META-INF/ANDROIDD.SF
Jan 14, 2015 11:54:11 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve F:\\selendroid-test-app-0.12.0.apk META-INF/ANDROIDD.RSA
Jan 14, 2015 11:54:11 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve F:\\selendroid-test-app-0.12.0.apk META-INF/NDKEYSTO.SF
Jan 14, 2015 11:54:11 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve F:\\selendroid-test-app-0.12.0.apk META-INF/NDKEYSTO.RSA
Jan 14, 2015 11:54:11 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Java\jdk1.6.0_26\bin\jarsigner.exe -sigalg MD5withRS
A -digestalg SHA1 -signedjar F:\\resigned-selendroid-test-app-0.12.0.apk -storep
ass android -keystore C:\Users\sai\.android\debug.keystore F:\\selendroid-test-a
pp-0.12.0.apk androiddebugkey
Jan 14, 2015 11:54:14 PM io.selendroid.builder.SelendroidServerBuilder signTestS
erver
INFO: App signing output:
Jan 14, 2015 11:54:14 PM io.selendroid.builder.SelendroidServerBuilder signTestS
erver
INFO: The app has been signed: F:\\resigned-selendroid-test-app-0.12.0.apk
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe dump
 badging F:\\resigned-selendroid-test-app-0.12.0.apk
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe dump
 badging F:\\resigned-selendroid-test-app-0.12.0.apk
Jan 14, 2015 11:54:14 PM io.selendroid.server.model.SelendroidStandaloneDriver i
nitApplicationsUnderTest
INFO: App io.selendroid.testapp:0.12.0 has been added to selendroid standalone s
erver.
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve C:\Users\sai\AppData\Local\Temp\android-driver8494728849163801343.apk META-IN
F/MANIFEST.MF
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve C:\Users\sai\AppData\Local\Temp\android-driver8494728849163801343.apk META-IN
F/CERT.RSA
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve C:\Users\sai\AppData\Local\Temp\android-driver8494728849163801343.apk META-IN
F/CERT.SF
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve C:\Users\sai\AppData\Local\Temp\android-driver8494728849163801343.apk META-IN
F/ANDROIDD.SF
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve C:\Users\sai\AppData\Local\Temp\android-driver8494728849163801343.apk META-IN
F/ANDROIDD.RSA
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve C:\Users\sai\AppData\Local\Temp\android-driver8494728849163801343.apk META-IN
F/NDKEYSTO.SF
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\build-tools\21.1.2\aapt.exe remo
ve C:\Users\sai\AppData\Local\Temp\android-driver8494728849163801343.apk META-IN
F/NDKEYSTO.RSA
Jan 14, 2015 11:54:14 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Java\jdk1.6.0_26\bin\jarsigner.exe -sigalg MD5withRS
A -digestalg SHA1 -signedjar C:\Users\sai\AppData\Local\Temp\resigned-android-dr
iver8494728849163801343.apk -storepass android -keystore C:\Users\sai\.android\d
ebug.keystore C:\Users\sai\AppData\Local\Temp\android-driver8494728849163801343.
apk androiddebugkey
Jan 14, 2015 11:54:15 PM io.selendroid.builder.SelendroidServerBuilder signTestS
erver
INFO: App signing output:
Jan 14, 2015 11:54:15 PM io.selendroid.builder.SelendroidServerBuilder signTestS
erver
INFO: The app has been signed: C:\Users\sai\AppData\Local\Temp\resigned-android-
driver8494728849163801343.apk
Jan 14, 2015 11:54:17 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\tools\android.bat list avds
Jan 14, 2015 11:54:21 PM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Android\android-sdk\platform-tools\adb.exe devices
Jan 14, 2015 11:54:21 PM io.selendroid.server.model.DeviceStore addEmulators
INFO: No emulators has been found.
Jan 14, 2015 11:54:21 PM io.selendroid.server.model.DeviceStore initAndroidDevic
es
WARNING: Warning: io.selendroid.exceptions.SelendroidException: No android virtu
al devices were found. Please start the android tool and create emulators and re
start the selendroid-standalone or plugin an Android hardware device via USB.
selendroid-standalone server has been started on port: 4444

请帮助解决问题! 谢谢

1 个回复

http://selendroid.io/setup.html部分“使用仿真器”中查看。

1 找不到Android虚拟设备

我安装了Android SDK和Eclipse以及所有内容。 当我运行我的第一个Android应用程序时,出现以下错误: [SDK管理器]无法找到供ABI armeabi复制到AVD文件夹的'userdata.img'文件。 我该如何解决? ...

2 在Windows上找不到Android虚拟设备“ / dev / kvm”

我已经在计算机上使用Android Studio大约两年了。 我最近更新到Windows 10,并开始遇到一些问题,其中大多数问题已得到解决。 但是,现在我无法创建任何手机的仿真器,并且Android Studio说“需要Intel HAXM来运行此AVD。找不到/ dev / kvm。 ...

4 Android虚拟设备

当我运行我的应用程序,如下所示错误显示你能告诉我什么是问题。 ...

2012-03-28 18:06:47 3 3318   android
5 在android studio 3 Windows 10上找不到虚拟设备

我对Android开发比较陌生,最近我在Windows 10计算机上下载了Android Studio。 但是我面临一些问题。 创建新项目时,在activity_main.xml设计选项卡中看不到任何虚拟设备。 我所看到的只是一条消息,指出“ 设计编辑器”在成功构建之前不可用 。 当我单 ...

6 Android Studio找不到我的虚拟设备

我尝试使用多种设备,但是在任何情况下运行应用程序时,android studio都会打开编辑配置选项卡,并显示错误:请选择android SDK 。 所以我浏览了所有选项卡,但一无所获。 我无法放置SDK或使用虚拟设备。 ...

7 我在Android虚拟设备上找不到已安装的应用程序

我正在开发本机应用程序,但是当尝试使用以下命令在Android虚拟设备上运行该应用程序时: 该应用程序在AVD上运行,但是我在虚拟设备上找不到该应用程序的图标,但是该应用程序运行没有任何问题。 这是我的AndroidManifest.xml 我在iOS版本中没有这个问题。 ...

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2022 STACKOOM.COM