Import Android Library
I want to use a specific Android library in my project. I use Eclipse IDE. When I import t开发者_开发知识库he complete library, I clean and build the project.
In the end, there is always an error that the project is missing required src
Folder gen.
Any ideas how to solve the problem? In a "normal" application, instead of the step "build the project" I use "Run the application" and this problem dis occurs but for libraries it is not available.
Well once I had the same problem, sometimes Eclipse does not update properly. In such a case what I did was to delete the error message from the Problems-View.
This worked for me, hope this works for you too.
Clean only when you think that your build is not correct. While cleaning, the folder gen will be deleted. Thats why you get the error.
It has nothing to do with the library. Just skip cleaning and do it only when you really think there is something messed up with your build.
There have been some known bugs with Android libraries. If the default.properties file is read only in the root directory of your project that has been reported as a bug. This happens when you check in your project to an svn.
精彩评论