How to avoid “Refreshing external Folders” in Android development in Eclipse

前端 未结 5 1989
情歌与酒
情歌与酒 2020-12-23 17:29

I am having this annoying problem which takes 10-20 seconds and sometimes more every time my android project is refreshed or rebuilt.

相关标签:
5条回答
  • 2020-12-23 18:02

    You can disable "Refresh on access" option in Window->Preferences->General->Workspace - it have no effect as I think, because even it's turned on you must manually refresh projects if you modify them outside of Eclipse

    0 讨论(0)
  • 2020-12-23 18:05

    If anything else fails (my case), install a fresh copy of Eclipse Juno Go to Help-Install Software, and add this repo: https://dl-ssl.google.com/android/eclipse/ Check all options and install. For migration reasons I was trying to install Eclipse on MAC OS Yosemite, since Android Studio is now the official IDE, it is hard to find Eclipse setups with the ADT plugin included. I tried several versions of Eclipse, and JUNO did the work.

    0 讨论(0)
  • 2020-12-23 18:10

    The reason for this is that you have attached source with your dependent jars. Just the remove the source from the class path. This how it can be done.

    Right click on the project -> Select Build Path -> Configure Build Path.. -> Select Libraries

    enter image description here

    Select the Source attachment and Remove button will highlight. Press Remove and OK.

    I think that should fix your issue.

    0 讨论(0)
  • 2020-12-23 18:12

    this helped me so you can try too:

    Go to your Workspace root/.metadata/.plugins/org.eclipse.jdt.core/ and remove .org.eclipse.jdt.core.external.folders folder

    it contains .project file with links to external folders which takes too long to refresh

    0 讨论(0)
  • 2020-12-23 18:20

    Instead of attaching a source folder to the .jar file, you should zip the source folder and attach the zipped file to the .jar.

    See this answer for more info https://stackoverflow.com/a/9699242/637754

    0 讨论(0)
提交回复
热议问题