Google广告依赖性实施后无法进行器乐测试

发布于 2025-02-03 03:35:14 字数 509 浏览 2 评论 0原文

Google Ads依赖项实现之后,我无法运行工具(UI)测试。跑步者每次崩溃。我试图将其实施到虚拟项目中,因为最初,我认为问题出在我的项目中,但似乎我对虚拟项目的结果并不相同,所以我的乐器测试没有运行。我已经检查了Google Ads依赖关系,并发现根本原因是Google Ads-Lite,该广告由Google Ads库使用。我尝试了一些变体,例如Change Runner,在x86, x64 平台上运行,更改lib版本,更改 gradle`版本,更改AGP版本。但是我找不到解决方案。

复制的步骤:

创建虚拟项目(Runner:“ Androidx.test.runner.androidJunitrunner”) 进行器乐测试以确保成功通过 实现com.google.android.gms:Play-Services-ads:20.5.0(或最新版本) 进行器乐测试,由于跑步者崩溃,应该被卡住

I couldn't run instrumental(UI) tests after Google Ads dependency implementation. The runner crashed every time; I tried to implement it to the dummy project because initially, I thought that the problem was in my project but it seemed not I got the same result on the dummy project, So merely my instrumental tests didn't run. I have inspected the Google Ads dependency and spotted that the root cause was google ads-lite which is used by the google ads library. I tried a few variants such as change runner, run it on x86,x64platforms, change lib version, changeGradle` version, change AGP version. But I can't find a solution.

Steps to reproduce:

Create a dummy project(runner: "androidx.test.runner.AndroidJUnitRunner")
Run an instrumental test to make sure that was passed successfully
implement com.google.android.gms:play-services-ads: 20.5.0(or latest version)
Run an instrumental test it should be stuck because of the runner crash

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文