Module dependency not detected during compile in IntelliJ IDEA 11

安稳与你 提交于 2019-12-22 08:39:34

问题


I am developing an Android app and I'm trying to include GraphView to plot some graphs.

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:

  • package com.jjoe64.graphview.GraphView does not exist
  • cannot find symbol class GraphView

etc.

I followed this guide to include it: http://wiki.jetbrains.net/intellij/Sharing_and_re-using_Android_resources_through_library_projects


回答1:


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 !



来源:https://stackoverflow.com/questions/9453900/module-dependency-not-detected-during-compile-in-intellij-idea-11

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