Changes to Android library project are not applied until restarting Eclipse

北慕城南 提交于 2020-01-03 01:48:50

问题


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


回答1:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!