Classes From Android Project Library Not Resolved In Android Project
Solution 1:
Figured out the answer to my problem. Sorry if it triggers 'Duh'-reactions in your heads...
When I created my project to be a library, I saw that my package was not com.mycompany.mypackagelib, but instead it was written "(default package)" in Eclipse. I tried to correct it, I actually renamed my package, but Eclipse was refusing, saying that com.mycompany.mypackagelib was already the name (as stated in the manifest for example). So I forced it in the .java file, writing "package com.mycompany.mypackagelib", but then getting an error saying that it should be package "". I went in the quick fix sub menu where it suggested me to move it to com.mycompany.mypackagelib. Then Bingo. Hope this helps somebody anyway.
Solution 2:
Recently, Google updated its tools and it introduced some strange behaviour when using library projects. I'm not sure you're dealing with the same problem, but try this:
- right click on your library project, choose Properties
- in the menu on the left, click on Java Build Path
- now click ont the Order and export tab
make sure "Android private libraries" and "Android dependencies" are checked. Do the same for your application project.
After these steps, clean both projects and maybe your problem is fixed ;-)
good luck!
Post a Comment for "Classes From Android Project Library Not Resolved In Android Project"