gpt4 book ai didi

Android:如何在主项目中使用测试项目

转载 作者:太空狗 更新时间:2023-10-29 15:22:19 25 4
gpt4 key购买 nike

我想在 Eclipse 中创建这样的项目结构并将其与 Maven 一起使用:

MyProject/
AndroidManifest.xml
res/
... (resources for main application)
src/
... (source code for main application) ...
tests/
AndroidManifest.xml
res/
... (resources for tests)
src/
... (source code for tests)

我在安卓网站上读到过这个结构。这里是这个话题http://developer.android.com/guide/topics/testing/testing_android.html

有人能帮帮我吗?

谢谢!

最佳答案

这使用了 ant,而不是 Maven,但仍然可能有一些帮助:

http://www.paulbutcher.com/2010/09/android-library-project-with-tests-step-by-step/

关于Android:如何在主项目中使用测试项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6390732/

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