问题描述
我有项目,那需要进行测试。我想将其导入到IntelliJ IDEA的。
与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的进口的Android Robotium项目进入的IntelliJ的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!