Robotium: Problems with importing Android Robotium project from Eclipse into IntelliJ

删除回忆录丶 提交于 2019-12-11 03:06:37

问题


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)

Any advice?


回答1:


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.



来源:https://stackoverflow.com/questions/12424392/robotium-problems-with-importing-android-robotium-project-from-eclipse-into-int

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!