简体   繁体   English

尝试运行测试时,CircleCi上的com.android.ddmlib.InstallException

[英]com.android.ddmlib.InstallException on CircleCi when trying to run tests

I did some searching around for this exception and saw that it's logged with Google as an Android bug, the only thing is it has been marked as fixed and released by them in an Android Studio release. 我做了一些搜索这个例外的事情,发现它已经将Google记录为Android错误,唯一的问题是它已被标记为已修复并由他们在Android Studio版本中发布。 However I am still experiencing it. 但是我还在体验它。

This is the full exception from CircleCi: 这是CircleCi的完整例外:

com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Failed to establish session
    at com.android.builder.testing.ConnectedDevice.installPackages(ConnectedDevice.java:117)
    at com.android.builder.internal.testing.SimpleTestCallable.call(SimpleTestCallable.java:130)
    at com.android.builder.internal.testing.SimpleTestCallable.call(SimpleTestCallable.java:49)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: com.android.ddmlib.InstallException: Failed to establish session
    at com.android.ddmlib.Device.installPackages(Device.java:894)
    at com.android.builder.testing.ConnectedDevice.installPackages(ConnectedDevice.java:113)
    ... 8 more

It happens when it gets to the ./gradlew --stacktrace connectedAndroidTest command in my circle.yml file. 它发生在我的circle.yml文件中的./gradlew --stacktrace connectedAndroidTest命令时。

Some other StackOverflow questions suggested setting a timeout, they were using TravisCI not CircleCi, but I tried it anyway and it has not worked. 其他一些StackOverflow问题建议设置超时,他们使用的是TravisCI而不是CircleCi,但我还是尝试了它并且它没有用。 I set the timeout to 20minutes, but it still crashes. 我将超时设置为20分钟,但它仍然崩溃。 This is getting very annoying because all my builds are failing when they are passing on my machine. 这变得非常烦人,因为我的所有构建在他们传递我的机器时都失败了。

Does anyone know the fix to this? 有谁知道解决这个问题? Fine Google had a bug, and they supposedly fixed it, but CircleCi seem to still be having this problem, so the problem must still be there. 好的谷歌有一个错误,他们应该修复它,但CircleCi似乎仍然有这个问题,所以问题仍然存在。

Would really appreciate some advice on this, CircleCi support is in another timezone so when I go to bed they are sending messages to me but I can't reply to the next morning when they are sleeping, so this has gone on for a week now and I've got no help from them. 真的很感激一些建议,CircleCi支持是在另一个时区,所以当我上床睡觉时他们正在向我发送信息,但是当他们睡觉时我无法回复第二天早上,所以这已经持续了一个星期了我没有得到他们的帮助。

Anyway, thanks for any help in advance. 无论如何,感谢提前的任何帮助。 I can post my circle.yml file if you need it to help debug. 我可以发布我的circle.yml文件,如果你需要它来帮助调试。

这个答案是我们通常所建议的,现在我们还没有找到更好的方法来处理这种异常。

暂无
暂无

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

相关问题 com.android.ddmlib.InstallException:EOF - com.android.ddmlib.InstallException: EOF 反应原生android com.android.ddmlib.InstallException错误 - react native android com.android.ddmlib.InstallException Error Android 测试协调器:com.android.ddmlib.InstallException:-26 - Android Test Orchestrator: com.android.ddmlib.InstallException: -26 com.android.ddmlib.InstallException:无法安装全部 - com.android.ddmlib.InstallException: Failed to install all com.android.ddmlib.InstallException:无法上传一些APK? - com.android.ddmlib.InstallException: Unable to upload some APKs? com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: 无法安装所有 - com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Failed to install all Android已连接AndroidTest失败,并出现com.android.ddmlib.InstallException:未知失败(错误:写入失败;(没有此类文件或目录)) - Android connectedAndroidTest fails with com.android.ddmlib.InstallException: Unknown failure (Error: failed to write;(No such file or directory)) com.android.ddmlib.InstallException: 无法建立会话 react-native - com.android.ddmlib.InstallException: Failed to establish session react-native 如何解决 com.android.ddmlib.InstallException: INSTALL_FAILED_UPDATE_INCOMPATIBLE - How to solve com.android.ddmlib.InstallException: INSTALL_FAILED_UPDATE_INCOMPATIBLE 安装split apks时出错:com.android.ddmlib.InstallException:无法完成会话:INSTALL_FAILED_INVALID_APK - Error installing split apks: com.android.ddmlib.InstallException: Failed to finalize session : INSTALL_FAILED_INVALID_APK
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM