android – 更新Robolectric 2.4:在eclipse中获取库项目的应用程序标记错误

android – 更新Robolectric 2.4:在eclipse中获取库项目的应用程序标记错误,第1张

概述我用2.4更新robolectric后得到的错误堆栈跟踪 任何方案? java.lang.RuntimeException: java.lang.IllegalArgumentException: Missing required <application/> element in .\..\google-play-services_lib\AndroidManifest.xml at o 我用2.4更新robolectric后得到的错误堆栈跟踪

任何方案?

java.lang.RuntimeException: java.lang.IllegalArgumentException: Missing required <application/> element in .\..\Google-play-services_lib\AndroIDManifest.xml    at org.robolectric.RobolectricTestRunner.evaluate(RobolectricTestRunner.java:226)    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)    at org.junit.runners.BlockJUnit4ClassRunner.runchild(BlockJUnit4ClassRunner.java:70)    at org.junit.runners.BlockJUnit4ClassRunner.runchild(BlockJUnit4ClassRunner.java:50)    at org.junit.runners.ParentRunner.run(ParentRunner.java:238)    at org.junit.runners.ParentRunner.schedule(ParentRunner.java:63)    at org.junit.runners.ParentRunner.runchildren(ParentRunner.java:236)    at org.junit.runners.ParentRunner.access0(ParentRunner.java:53)    at org.junit.runners.ParentRunner.evaluate(ParentRunner.java:229)    at org.robolectric.RobolectricTestRunner.evaluate(RobolectricTestRunner.java:158)    at org.junit.runners.ParentRunner.run(ParentRunner.java:309)    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)Caused by: java.lang.IllegalArgumentException: Missing required <application/> element in .\..\Google-play-services_lib\AndroIDManifest.xml    at org.robolectric.AndroIDManifest.parseandroidManifest(AndroIDManifest.java:155)    at org.robolectric.AndroIDManifest.getPackagename(AndroIDManifest.java:474)    at org.robolectric.AndroIDManifest.getResourcePath(AndroIDManifest.java:517)    at org.robolectric.AndroIDManifest.getIncludedResourcePaths(AndroIDManifest.java:522)    at org.robolectric.AndroIDManifest.getIncludedResourcePaths(AndroIDManifest.java:524)    at org.robolectric.RobolectricTestRunner.createAppResourceLoader(RobolectricTestRunner.java:635)    at org.robolectric.RobolectricTestRunner.getAppResourceLoader(RobolectricTestRunner.java:627)    at org.robolectric.internal.ParallelUniverse.setUpApplicationState(ParallelUniverse.java:67)    at org.robolectric.RobolectricTestRunner.setUpApplicationState(RobolectricTestRunner.java:440)    at org.robolectric.RobolectricTestRunner.evaluate(RobolectricTestRunner.java:222)    ... 16 more
解决方法 这是Roboletric 2.4将检查库项目的标签.

你可以参考这个官方链接:https://github.com/robolectric/robolectric/pull/1309

它有一个解决此问题的解决方法.

总结

以上是内存溢出为你收集整理的android – 更新Robolectric 2.4:在eclipse中获取库项目的应用程序标记错误全部内容,希望文章能够帮你解决android – 更新Robolectric 2.4:在eclipse中获取库项目的应用程序标记错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1127703.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-30
下一篇2022-05-30

发表评论

登录后才能评论

评论列表(0条)

    保存