错误描述



在Android Studio中点击VCS向下箭头使用SVN Update功能更新代码的时候,报错如下所示:

错误描述信息:

Error:svn: E155037: Previous operation has not finished; run 'cleanup' if it was interrupted

如错误描述提示我Cleanup,于是我尝试 VCS -> Cleanup Project进行Cleanup操作

可是我Cleanup失败,失败提示如下所示:

错误描述信息:

Error:Error performing cleanup for 'D:\BBK_SVN\I3_Trunk': svn: E155009: Failed to run the WC DB work queue associated with 'D:\BBK_SVN\I3_Trunk', work item 3685 (file-install sync/maven_pom.properties 1 0 1 1)
svn: E720005: Can't move 'D:\BBK_SVN\I3_Trunk\.svn\tmp\svn-F2531208' to 'D:\BBK_SVN\I3_Trunk\sync\maven_pom.properties': �ܾ����ʡ�

我以为是Android Studio的CVS插件出问题了,于是进入到项目地址用TortoiseSVN( 小乌龟)去直接操作。





好吧,一样还是不能解决此问题。只能去google如何解决此问题了。

解决方法

步骤一、清空svn的队列

1、进入到项目的.svn目录中,查看是否存在wc.db文件

C:\Users\Administrator>D:

D:\>cd D:\BBK_SVN\I3_Trunk

D:\BBK_SVN\I3_Trunk>cd .svn

D:\BBK_SVN\I3_Trunk\.svn>dir
Volume in drive D has no label.
Volume Serial Number is 0005-0E52 Directory of D:\BBK_SVN\I3_Trunk\.svn 2016/10/24 15:21 3 entries
2016/10/24 15:21 3 format
2016/10/24 15:22 <DIR> pristine
2016/11/08 14:56 <DIR> tmp
2016/11/08 14:56 2,846,720 wc.db
2016/11/08 14:56 0 wc.db-journal
4 File(s) 2,846,726 bytes
2 Dir(s) 55,646,486,528 bytes free

2、执行sqlite3命令查看wc.db数据库的内容

C:\Users\Administrator>D:

D:\>cd D:\BBK_SVN\I3_Trunk

D:\BBK_SVN\I3_Trunk>sqlite3 .svn/wc.db "select * from work_queue"
3685|(file-install sync/maven_pom.properties 1 0 1 1)
3686|(file-install sync/src/main/aidl/com/xtc/sync/IConnectionService.aidl 1 0 1 1)
3687|(file-install sync/src/main/aidl/com/xtc/sync/IReadDataCallback.aidl 1 0 1 1)

通过sqlite3命令可以看到wc.db中的work_queue表中有多条数据。

3、清空work_queue表数据,然后查看是否清楚完毕

D:\BBK_SVN\I3_Trunk>sqlite3 .svn/wc.db "select * from work_queue"
3685|(file-install sync/maven_pom.properties 1 0 1 1)
3686|(file-install sync/src/main/aidl/com/xtc/sync/IConnectionService.aidl 1 0 1 1)
3687|(file-install sync/src/main/aidl/com/xtc/sync/IReadDataCallback.aidl 1 0 1 1) D:\BBK_SVN\I3_Trunk>sqlite3 .svn/wc.db "delete from work_queue" D:\BBK_SVN\I3_Trunk>sqlite3 .svn/wc.db "select * from work_queue"

上面的所有命令如下所示:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\Administrator>D: D:\>cd D:\BBK_SVN\I3_Trunk D:\BBK_SVN\I3_Trunk>sqlite3 .svn/wc.db "select * from work_queue"
3685|(file-install sync/maven_pom.properties 1 0 1 1)
3686|(file-install sync/src/main/aidl/com/xtc/sync/IConnectionService.aidl 1 0 1 1)
3687|(file-install sync/src/main/aidl/com/xtc/sync/IReadDataCallback.aidl 1 0 1 1) D:\BBK_SVN\I3_Trunk>sqlite3 .svn/wc.db "delete from work_queue" D:\BBK_SVN\I3_Trunk>sqlite3 .svn/wc.db "select * from work_queue" D:\BBK_SVN\I3_Trunk>

4、清空wc_lock表数据

有时候只是清空work_queue表数据不行,还得清空wc_lock表数据,才能cleanup成功

D:\BBK_SVN\I3_Trunk\.svn>sqlite3 wc.db "delete from wc_lock"

步骤二、运行 Cleanup命令

再运行 Cleanup命令之后,弹出如下所示的界面,则可以正常的进行Cleanup操作了。

或者直接在Android Studio里 VCS -> Cleanup Project进行Cleanup操作。

步骤三、运行 SVN Update命令

成功Cleanup之后在运行SVN Update即可更新成功,如下所示:



或者在Android Studio中点击向下的箭头 进行 Update操作

更新成功后的提示:

作者:欧阳鹏 欢迎转载,与人分享是进步的源泉!

转载请保留原文地址:http://blog.csdn.net/ouyang_peng/article/details/53027992

【我的Android进阶之旅】解决SVN Cleanup错误: Failed to run the WC DB work queue associated with的更多相关文章

  1. SVN报错“Failed to run the WC DB work queue associated with”解决办法

    最近在更新SVN上的ISO代码时,失败报错:  Failed to run the WC DB work queue associated with "目录/文件",clean u ...

  2. 解决SVN Cleanup错误: Failed to run the WC DB work queue associated with

    [内容来源自https://www.cnblogs.com/ANCAN-RAY/p/8961832.html] 在svn本地目录更新文件夹时,更新失败. 然后svn提示我,让我cleanup一下,于是 ...

  3. svn: Failed to run the WC DB work queue associated svn的bug解决

    第一步,下载sqlite 官方网址  :https://www.sqlite.org/download.html 第二步:解压放在c盘 第三步:配置环境变量 第四步:找到工作空间的.svn文件,cmd ...

  4. Failed to run the WC DB work queue associated with 错误的解决

    转载自 http://blog.csdn.net/alan00000/article/details/44084455 svn checkout 代码是出现如标题的错误,提示我clean up ,cl ...

  5. 转 Failed to run the WC DB work queue associated with 错误的解决

    svn 异常终止导致的缓存工作队列问题 解决方法:清空svn的队列 1.下载sqlite3.exe 2.找到你项目的.svn文件,查看是否存在wc.db 3.将sqlite3.exe放到.svn的同级 ...

  6. 我的Android进阶之旅------>解决Jackson等第三方转换Json的开发包在开启混淆后转换的实体类数据都是null的bug

    1.错误描述 今天测试人员提了一个bug,说使用我们的app出现了闪退的bug,后来通过debug断点调试,发现我们的app转换服务器发送过来的json数据后,都是为null.而之前已经提测快一个月的 ...

  7. 我的Android进阶之旅------>解决Error:Unable to find method 'org.gradle.api.internal.project.ProjectInternal.g

    错误描述 今天在Github上面下载了一份代码,然后导入到Android Studio中直接报了如下图所示的错误: 错误描述如下: Error: Unable to find method 'org. ...

  8. 我的Android进阶之旅------>解决Error:Could not find property 'compile' on org.gradle.api.internal.artifacts.

    1错误描述 解决方法 1错误原因 2解决方法 1.错误描述 刚刚,Android Studio突然编译不了了,报了如下错误: Error:Could not find property 'compil ...

  9. 我的Android进阶之旅------>解决DownloadManager报错java.lang.SecurityException: Invalid value for visibility: 2

    1.问题描述 今天使用Android系统的DownloadManager进行下载操作时,爆了如下所示的错误: java.lang.RuntimeException: Unable to start s ...

随机推荐

  1. makefile之short函数

    函数名称:排序函数-$(sort LIST) 函数功能:给字串"LIST"中的单词以首字母为准进行排序(升序),并去掉重复的单词. 返回值:空格分割的没有重复单词的字串. 函数说明 ...

  2. CentOS 7 ifconfig: command not found

    # ifcon-bash: ifconfig: command not found谷歌了一下,整理了一下解决思路 查看ifconfig命令是否存在 查看 /sbin/ifconfig是否存在 如果if ...

  3. C++读取Sql Server

    代码如下: // ReadSqlConsole.cpp: 主项目文件. #include "stdafx.h" #include <iostream> #include ...

  4. .net 编码常见问题

    问题一: windows service 启动时需要用死循环来控制程序,如果不开启异步,死循环会导致windows sevice 程序无法启动,代码情况如下 protected override vo ...

  5. linux程序设计——主机字节序和网络字节序(第十五章)

    15.2.10    主机字节序和网络字节序 当在基于intel处理器的linux机器上执行新版本号的server和客户程序时,能够用netstat命令查看网络连接状况.它显示了客户/server连接 ...

  6. (转)ReentrantLock与Synchronized同步区别

    转自:http://blog.csdn.net/fw0124/article/details/6672522 原文:http://www.ibm.com/developerworks/cn/java/ ...

  7. TCP/IP协议族-----15、传输控制协议(TCP)

  8. 微信 openId

    摘要 关于微信开发的话题,例子确实已经有不少,但大部分都是人云亦云,很多小细节或者需要注意的地方却大多没有讲清楚,这令很多刚开始开发的人感觉大很迷茫.而我今天要说的话题,主要着眼于两个方面. 一:如何 ...

  9. retrival and clustering : week 3 k-means 笔记

    华盛顿大学 machine learning 笔记. K-means algorithm 算法步骤: 0. 初始化几个聚类中心 (cluster centers)μ1,μ2, … , μk 1. 将所 ...

  10. jQuery左右选择框

    <!DOCTYPE html> <html> <head> <title>左右选择框</title> <style type=&quo ...