错误描述



在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. locationInView和translationInView的区别

      1  translationInView是UIPanGestureRecognizer下面的一个属性 locationInView则是UIGestureRecognizer下面的属性 2  tra ...

  2. linux学习笔记32---命令ping和telnet

    Linux系统的ping命令是常用的网络命令,它通常用来测试与目标主机的连通性,我们经常会说“ping一下某机器,看是不是开着”.不能打开网页时会说“你先ping网关地址192.168.1.1试试”. ...

  3. 跟着百度学PHP[16]-验证码的学习

    一个验证码需要有以下步骤: 验证底图 验证码内容 生成验证码 对比校验 验证码需要依靠PHP的GD扩展库.一些集成环境是默认安装了GD拓展库. <?php //创建一个100*30px图片,默认 ...

  4. 在drop user之前,建议获取该用户的依赖情况

    在删除这两个用户之前,建议获取这两个用户的依赖情况: SQL> col owner format a15 SQL> col name format a15 SQL> col REFE ...

  5. springmvc中配置servlet初始化类

    <bean  id="InitStart" lazy-init="false" init-method="InitSystem" cl ...

  6. Enable Authentication on MongoDB

    1.Connect to the server using the mongo shell mongo mongodb://localhost:27017 2.Create the user admi ...

  7. 时间戳(Unix时间)

    /// <summary> /// 时间戳与DateTime互转 /// </summary> public class UnixOfTimeHelper { /// < ...

  8. VC中怎么输入特殊符号(如平方、立方等下标符号)

    同在列表控件里显示汉字一样,直接把输入法里特殊字符放进一个数组里,然后再赋值:CString F[]={"m²","∑","±"," ...

  9. OpenWrt 安装usb支持

    (一)下载软件 1)komd-usb-ohci kmod-usb2 kmod-usb-storage kmod-usb-core 这些是USB驱动包 2) kmod-nls-base kmod-nls ...

  10. MS SqlServer 2008R2- Sql语句循环遍历生成百条随机数

    Sql语句,循环遍历生成区间5~20的随机数语句如下: are @i int DECLARE @Result INT DECLARE @Upper INT DECLARE @Lower INT ) ) ...