1
我試圖設置Jenkins和Android模擬器插件來測試自動化。當Jenkins試圖安裝apk時,無法找到模擬器。但是,如果我通過Eclipse安裝.apk一切正常。即使在運行模擬器時也找不到設備
螞蟻命令我使用installt
這是詹金斯輸出:
$ /opt/android-sdk-linux/platform-tools/adb connect localhost:43944
[android] Emulator is ready for use (took 35 seconds)
[workspace] $ ant "-Dadb.device.arg=-s Froyo" -Dsdk.dir=/opt/android-sdk-linux -Dtarget=android-8 -Dtested.project.dir=../../Finder/workspace installt
Buildfile: /var/lib/jenkins/jobs/FinderTest/workspace/build.xml
-check-env:
[checkenv] Android SDK Tools Revision 20.0.3
[checkenv] Installed at /opt/android-sdk-linux
-setup:
[echo] Project Name: Finder
[gettype] Project Type: Test Application
-test-project-check:
-set-mode-check:
-set-debug-files:
install:
[echo] Installing /var/lib/jenkins/jobs/FinderTest/workspace/bin/Finder-debug.apk onto default emulator or device...
[exec] error: device not found
[exec] - waiting for device -
正如你可以在第二行看到,該模擬器已準備就緒,但在安裝時不被認可。