简体   繁体   English

Eclipse坚持3%的Android Library Update

[英]Eclipse stuck with Android Library Update at 3%

I'm at a standstill in Eclipse due to an "Android Library Update" that never finishes. 由于“ Android Library Update”从未完成,因此我在Eclipse中处于停滞状态。 I tried restarting Eclipse, restarting my computer, deleting the .metadata folder under my Eclipse workspace , and several other shots in the dark. 我尝试重新启动Eclipse,重新启动计算机, 删除Eclipse工作区下的.metadata文件夹 ,并在黑暗中拍摄了其他几张照片。 Under Window -> Preferences, I also already checked "Skip packaging and dexing (...)" 在“窗口”->“首选项”下,我还已经选中了“跳过打包和分形(...)”

I have only two projects open: a small demo app and the Google Play Services Library linked to it. 我只打开了两个项目:一个小型演示应用程序和与其链接的Google Play服务库。 So the problem can't be too many projects, per this question . 因此,根据这个问题 ,问题不可能是太多项目。

Does anybody have any other ideas? 还有其他想法吗?

See the various steps in this post: 请参阅本文中的各个步骤:

Eclipse hangs at the Android SDK Content Loader Eclipse挂在Android SDK Content Loader上

One of the answers is mine (delete "workbench.xmi") which works for me the best. 答案之一是我的(删除“ workbench.xmi”),对我而言效果最好。 I find I have to do this every month or so. 我发现我必须每个月左右执行一次。

If you are using windows, Open Windows Task Manager and serach for process named 'aapt.exe' and kill the same. 如果您使用的是Windows,请打开Windows任务管理器并搜索名为“ aapt.exe”的进程,然后将其杀死。 This makes library update will start frome begining and it will continue further. 这将使库更新从头开始,并将继续进行。

Please try the below: 请尝试以下方法:

Make sure that eclipse is not active. 确保月食未激活。 If it is active kill eclipse from the processes tab of the task manager 如果它是活动的,请从任务管理器的“进程”选项卡中杀死食

  1. Open %USERPROFILE%/ on Windows or simply ~ on Linux/OS X (You can locate this folder from the Desktop) 在Windows上打开%USERPROFILE%/,或者在Linux / OS X上打开〜(您可以从桌面找到此文件夹)
  2. Go to .android folder (This may be a hidden folder) 转到.android文件夹(这可能是一个隐藏的文件夹)
  3. Delete the folder cache which is located inside .android folder 删除.android文件夹内的文件夹缓存
  4. Delete the file ddms.cfg which is located inside .android folder 删除.android文件夹中的文件ddms.cfg
  5. Start Eclipse 启动Eclipse

I tried the above and it worked for me. 我尝试了上面,它为我工作。 Hope it works for you as well. 希望它也对您有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM