I have a Android project A which is not a library project. I have another Android Project Main with refers project A (by:Project properties -> Java build path -> projects tab -> Add). So I can access all the classes (Fragments, Activity) of Project A from Main Project. However while running the project Main it throws an run time exception of java.lang.noclassdeffounderror
. Is there any way to resolve the issue without making the Project A as library project.
I am using roboguice
in both of my project. So If I will make project A as library, all the resources created inside R.java
file in project A will become non-final and they will not be constants any more. Moreover I am using Roboguice
in both of my projects.So declaring @InjectView(R.id.view_di)
will give compile error in this case as it needs constants. On top of this we have one annotation interface which sets the header name and header background in each fragments which takes only constants as parameter.