Robotium:问题与Eclipse的进口的Andr​​oid Robotium项目进入的IntelliJ [英] Robotium: Problems with importing Android Robotium project from Eclipse into IntelliJ

查看:248
本文介绍了Robotium:问题与Eclipse的进口的Andr​​oid Robotium项目进入的IntelliJ的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有项目,那需要进行测试。我想将其导入到IntelliJ IDEA的。
与IDEA问题与该应用程序项目的知名度连接,我猜。
我添加它作为一个模块依赖,所建议的<一个href=\"http://stackoverflow.com/questions/9718920/robotium-howto-create-a-test-project-for-an-existing-project-in-intellij-idea\">here.但它并没有帮助。
IDEA仍然抛出编译错误,如:

I've got project originally written in Eclipse as a separate Robotium project for the application project, that need to be tested. I wanted to import it into IntelliJ IDEA. The problem with IDEA is connected with visibility of that application project, I guess. I've added it as a module dependency, as suggested here. But it didn't help. IDEA still throws compilation errors like:

type parameter com.***.MyActivity is not within its bound    
cannot find symbol constructor Solo(android.app.Instrumentation, com.***.MyActivity)

任何意见?

推荐答案

请注意,当你模块之间设置的依赖关系,该模块的库将无法使用默认的其他模块,需要明确启用在导出复选框为相应的库。

Note that when you set dependencies between modules, libraries of the module will not be available for the other module by default, one needs to explicitly enable the Export checkbox for the corresponding libraries.

这篇关于Robotium:问题与Eclipse的进口的Andr​​oid Robotium项目进入的IntelliJ的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆