2
我試圖將一個HOSTS文件複製到使用jenkins中的android-emulator-plugin創建的avd。我已經指定分區大小爲128,從命令行運行時工作得很好,但是當我將主機文件複製到/ system/etc/hosts時,它始終會在推送過程中返回內存不足錯誤。構建的輸出如下:分區大小未能從Android模擬器插件設置
/Users/Shared/Jenkins/Home/tools/android-sdk/tools/emulator -no-boot-anim -ports 5644,5645 -prop persist.sys.language=en -prop persist.sys.country=US -avd hudson_en-US_240_WXGA720_android-17_x86_blackwidow_integration_test -no-snapshot-load -no-snapshot-save -no-window -partition-size 128
_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
emulator: WARNING: 1: key name doesn't start with valid character. line ignored
Failed to create Context 0x3005
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
HAX is working and emulator runs in fast virt mode
$ /Users/Shared/Jenkins/Home/tools/android-sdk/platform-tools/adb connect emulator-5644
[android] Waiting for emulator to finish booting...
$ /Users/Shared/Jenkins/Home/tools/android-sdk/platform-tools/adb -s emulator-5644 shell getprop dev.bootcomplete
error: device offline
$ /Users/Shared/Jenkins/Home/tools/android-sdk/platform-tools/adb -s emulator-5644 shell getprop dev.bootcomplete
error: device offline
$ /Users/Shared/Jenkins/Home/tools/android-sdk/platform-tools/adb -s emulator-5644 shell getprop dev.bootcomplete
$ /Users/Shared/Jenkins/Home/tools/android-sdk/platform-tools/adb -s emulator-5644 logcat -v time
[android] Emulator is ready for use (took 35 seconds)
[android] Searching for Android projects...
[android] Project file 'smartfusion-android/project.properties' requires platform 'android-21'
[android] Ensuring platform(s) are installed: [android-21]
$ /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android list target
[fusion-android] $ /bin/sh -xe /Users/Shared/Jenkins/tmp/hudson4186611571599232820.sh
+ /Users/Shared/Jenkins/Home/tools/android-sdk/platform-tools/adb remount
remount succeeded
+ /Users/Shared/Jenkins/Home/tools/android-sdk/platform-tools/adb push hosts.txt /system/etc/hosts
failed to copy 'hosts.txt' to '/system/etc/hosts': Out of memory
Build step 'Execute shell' marked build as failure
[android] Stopping Android emulator
是否有一些我遺失的魔法?
是的。當我從命令行執行時,128就足夠了。本週末我將嘗試與220合作。 – kingargyle 2015-02-27 17:36:41