gpt4 book ai didi

android - Jenkins 和安卓模拟器 : Emulator did not appear to start; giving up

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:00:16 28 4
gpt4 key购买 nike

我想通过 Jenkins 测试我们的 android 应用程序。我配置了所有内容,但收到此错误消息:

[android] Emulator did not appear to start; giving up

我从 here 找到了这个问题的解决方案

This one can have several reasons. One of them is listed in the error below. I didn't encounter this myself but I've read on stackoverflow while looking for a solution to my specific issue. It seems to be related to the revision of the android sdk tools. On windows there was a fix like stated in this ticket: https://issues.jenkins-ci.org/browse/JENKINS-10815 However there seems to be a similar issue on linux that isn't fixed yet (at least the ticket is still open): https://issues.jenkins-ci.org/browse/JENKINS-14901

解决方案:该票证中建议的解决方案是创建一个名称为 emulator(返回原始)的链接,指向适当的 emulator-X bin。

我试过了并解决了我们的问题,但只有一些构建,之后我又收到了这条消息。这就是为什么我删除了 android 插件并删除了 sdk 文件夹,所以我重新安装了所有东西。之后有 4 个成功构建。 (有趣的是,我没有像以前那样创建模拟器链接)但仅此而已,问题得到了支持。我玩了配置并为模拟器启动设置了 30 秒延迟,并选中了“构建后删除模拟器”选项。我以为问题解决了,因为我有 14 个!!!构建成功但问题再次出现:(现在还有一条新的错误消息:

NAND: could not write file /tmp/android-jenkins/emulator-CaWkYU, File exists [android] Emulator did not appear to start; giving up

你在想什么,问题是什么?使用相同的设置有时会成功,有时不会。为什么?

最佳答案

最后我在源代码中找到了问题: AndroidEmulator.java

adb 连接超时为 1 分钟,已修复:

 private static final int ADB_CONNECT_TIMEOUT_MS = 60 * 1000;

所以我将它增加到 5 分钟,构建一个新插件并安装它解决了我的问题(~100 个构建没有这个问题)

关于android - Jenkins 和安卓模拟器 : Emulator did not appear to start; giving up,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19349222/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com