从版本控制将 Android 测试项目导入 Eclipse
我有一个 Android Eclipse 项目和一个关联的 Android Test Eclipse 项目已签入 subversion 存储库。给定签出的工作副本,如何将 Android 测试项目引入 Eclipse 工作区?
将 Android 项目添加到工作区很容易(只需 File->New Project->Android Project->From Existing Source 并将其指向 svn 工作副本中的目录)。但是,“新 Android 测试项目”没有从现有源创建的选项。
I have an Android Eclipse project and an associated Android Test Eclipse project checked into a subversion repository. Given a checked out working copy, how do I bring the Android Test project into an Eclipse workspace?
It's easy to add the Android project to the workspace (just File->New Project->Android Project->From Existing Source and point it at the directory in the svn working copy). But, the 'New Android Test Project' does not have an option to create from existing source.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
正在寻找这个功能,但也没有找到它:)
我最后做了的是这样的:
简单地说,我只是生成了新的 .classpath 和 .project 文件并将它们复制到签出的项目目录。
在 Eclipse 中进行清理和刷新后,结果就解决了:)
当然,这不是一个真正的解决方案,而是一个丑陋的解决方法,我什至不希望它在任何情况下都有效,但谁知道呢,可能会对您有所帮助。
干杯。
Was searching for this functionality and didn't find it either :)
What I did in the end is this:
Simply put, I just generated new .classpath and .project files and copied them to checked out project dir.
After cleaning and refreshing in Eclipse this worked out :)
Of course this is not a real solution, but an ugly workaround which I even don't expect to work in any situation, but who knows, might help you.
Cheers.
我想你想要导入>现有项目,特别是如果 .project 和 .classpath 文件已签入版本控制。
I think you want Import > Existing project, especially if the .project and .classpath files are checked into version control.
我还必须 R. 单击测试应用程序(作为正常的现有 Android 应用程序导入后)->属性->资源->安卓->检查相应的模拟 Android 框以获取用于运行/调试的 Android JUnit 测试选项,否则该选项将丢失。
I also had to R. click the test app (after importing as a normal Existing Android app) -> Properties -> Resource -> Android -> check the appropriate emulated Android box to get the Android JUnit Test option for running/debugging which was otherwise missing.