问题标签 [android-emulator-plugin]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1069 浏览

android - 詹金斯无法启动模拟器

我正在尝试在 Jenkins 服务器上运行模拟器。但是我不断收到这个错误,即 Jenkins 无法启动模拟器,因为它会出现以下错误,直到超时:

我应该怎么做才能克服这个该死的问题?

0 投票
2 回答
706 浏览

android - Jenkins cannot connect to android emulator

I'm using Jenkins for continous integration on an android emulator to run instrumentation tests with the espresso framework. Unfortunately the server is not able to connect to the emulator. I have a master instance which delegates the push events from GitHub to the slave instance where the android sdk is installed. I installed the android-emulator-plugin and configured it like described. At first the Jenkins starts the emulator, but it cannot connect to it afterwards. This is the result:

enter image description here

I also cannot connect to the emulator when I'm on the slave machine. But if I use 127.0.0.1 instead of localhost the adb tool can connect to the emulator:

enter image description here

Is it possible to use 127.0.0.1 instead of localhost with the android-emulator-plugin? I already specified the enviorment variables $ANDROID_AVD_DEVICE and $ANDROID_SERIAL with no result. Any ideas?

0 投票
1 回答
569 浏览

jenkins - 使用 Jenkins Android Emulator Plugin 运行多个模拟器

我想在具有不同屏幕尺寸的多个模拟器上测试一个应用程序。我更喜欢只有一个构建计划,而不是每个模拟器配置的构建计划。

是否可以使用适用于 Jenkins 的 Android 模拟器插件运行例如 3 个具有不同配置的模拟器?

是否有其他插件可以实现这一点?

0 投票
2 回答
92 浏览

android - 为 Nougat 创建 Android 模拟器时出现错误

模拟器用户您好:

我想为Android Nougat创建一个模拟器,但是当我为 Nougat 选择选项时,它给了我以下错误。

在此处输入图像描述

0 投票
1 回答
652 浏览

android - Jenkins Android Emulator Plugin 未启动,90000 毫秒后超时,adb -s emulator-5758 wait-for-device shell getprop init.svc.bootanim

我正在尝试在我的 Jenkins 服务器上运行 android 测试。第一个问题是我的机器不支持硬件加速。我可以在日志中看到这一点,因此可能是问题所在:

我可以通过传递以下标志来启动模拟器:

但它似乎在等待模拟器并超时。请查看 Jenkins 服务器的完整日志:

知道如何推进我的调查吗?

0 投票
0 回答
676 浏览

android-emulator - Qemu 在真正的三星 ROM 上设置属性?

我可以访问我认为是真正的三星 J7 2016 的设备。但是,我在文件系统的根目录以及我发现 ro.adb.qemud=1 和ro.kernel.qemu.gles=1。

为什么所有这些都存在于实际部署在真实硬件上的 ROM 中?我可以确定这是在真实硬件上运行并且没有被模拟吗?

值得注意的是,ro.kernel.qemu=0,但如果这是真的,为什么要让 adb 和 opengl 对 qemu 的支持处于活动状态?

抱歉,如果我在这里很密集,我真的不明白为什么真正的硬件会为 qemu 提供所有这些东西......

0 投票
0 回答
185 浏览

android - Jenkins Android 模拟器插件 - “无法创建 Android 模拟器:无法解析 AVD 配置文件”

我正在努力寻找一个安装了 Google API 的最新 sdk 版本,该版本可以与 Jenkins Android Emulator 插件一起使用。我确定它们存在,但我无法弄清楚Android OS Version配置插件的正确参数是什么。

Google Inc.:Google APIs:9是他们提供的示例,所以我将其更改为Google Inc.:Google APIs:19, Google Inc.:Google APIs:25, Google Inc.:Google APIs:26,但它们都不起作用。

我一直试图让 x86 目标 api 工作,但我的 Jenkins 实例在 AWS 中运行,我不相信硬件加速工作,所以 x86 可能不是一个选项。

请告诉我Android OS Version与适用于 Android SDK 19、25 和 26 的 Google API 一起使用的正确参数,并请推荐与 AWS 一起使用的 ABI。

Jenkins Android 模拟器插件操作系统版本

0 投票
1 回答
74 浏览

android - 我们可以在詹金斯服务器上使用通配符和“Android Emulator Plugin”吗?

我正在尝试在 Jenkins CI 上的 Android Emulator Plugin 的帮助下在模拟器上安装和运行我的 apk,但我无法使用通配符,因为我用风味名称、内部版本号和构建日期重命名了我的 apk 文件。有没有办法让事情顺利进行?

0 投票
0 回答
215 浏览

android - Jenkins:Android 模拟器插件 - 没有这样的文件

我是詹金斯的新手。我正在尝试使用 jenkins 模拟器构建示例浓缩咖啡测试。以下是我的詹金斯的错误。请帮忙。谢谢!

单击此处查看我的 Android 模拟器配置图片: 图像路径

调用 Gradle 脚本: 图像路径

0 投票
3 回答
1517 浏览

android - Android Emulator RAM 未针对 Google Play API 27 扩展

当我使用 Google Play API 27 在 Android 模拟器上创建虚拟 Android 设备时,它不允许我提供自定义数量的 RAM 大小。相反,它需要默认的 1536 MB RAM 和 800 MB 内部存储。我不明白为什么......

这是显示选项已禁用的屏幕截图