I have a main Android application that is using an Android library project. When I change my library project and Build Project
or Build All
the changes are not detected in main project until I clean the main project or close and reopen Eclipse.
How con I solve this problem? Is there any rapid solution?
Update
I am using:
Eclipse 3.7.1
Android SDK API 15 Rev 3
Android SDK Tools Rev 19
Android SDK Platform-tools Rev 11
Solution 1) I clicked on Android Dependencies in Package Explorer and pressed F5 (refresh) and built the main project and problem solved.
Solution 2) this answer also works for this problem. It says you can add the project to the build path. ( Right click on project -> properties -> java build path -> Projects -> Add).
Under the Order and Export section, make sure the library is above the Android Dependencies.
来源:https://stackoverflow.com/questions/13560014/changes-to-android-library-project-are-not-applied-until-restarting-eclipse