在IntelliJ IDEA的11编译过程中未检测模块依赖 [英] Module dependency not detected during compile in IntelliJ IDEA 11
问题描述
我正在开发Android应用程序,我想包括 GraphView 来绘制一些图表。
I am developing an Android app and I'm trying to include GraphView to plot some graphs.
要求将它作为一个模块依赖。我这样做后,IDE的IntelliJ正确检测包,我可以导入它们,但在编译的时候编译器会引发错误:
It is required to include it as a module dependency. After I do that, the IntelliJ IDE properly detects the packages and I can import them, but compiler throws errors when trying to compile:
- 包com.jjoe64.graphview.GraphView不存在
- 无法找到符号类GraphView
等。
我遵循这个指南,包括它:<一href=\"http://wiki.jetbrains.net/intellij/Sharing_and_re-using_Android_resources_through_library_projects\" rel=\"nofollow\">http://wiki.jetbrains.net/intellij/Sharing_and_re-using_Android_resources_through_library_projects
I followed this guide to include it: http://wiki.jetbrains.net/intellij/Sharing_and_re-using_Android_resources_through_library_projects
推荐答案
如果它仍然occures给任何人,我的理由是,该模块的Android类libarary源文件夹没有标记为源目录。
只需点击源文件夹并选择标记目录 - >源文件夹。
在此之后,而不是编译,选择'使',然后它会开始为你工作。
If it still occures to anyone , for me the reason was that the module's Android class libarary source folder was not marked as 'Sources' directory . Simply click on the sources folder and choose mark directory as --> source folder. After that instead of compile , choose 'make' , and then it will start working for you.
祝您好运与恼人的错误!
Best of luck with that annoying bug !
这篇关于在IntelliJ IDEA的11编译过程中未检测模块依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!