问题
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