WMRouter icon indicating copy to clipboard operation
WMRouter copied to clipboard

进行非增量编译时,提示xx.jar文件被其他进程占用

Open chenxumeng opened this issue 2 years ago • 0 comments

复现:

  1. windows系统,使用Android studio
  2. 工程引入WMRouter,编译成功后,用文件夹打开 xx.apk,
  3. 使用cmd 的adb 命令安装apk
  4. 修改代码,再次编译工程
  5. 提示xxx.jar 被其他进程占用。
  6. 使用window自带的资源管理器可以看到 Android studio 和Java.exe 都使用这个xx.jar 代码编译提示的: //非增量编译,先清空输出目录
    if (!invocation.isIncremental()) { try { invocation.getOutputProvider().deleteAll(); } catch (IOException e) { // 这里抛出异常 WMRouterLogger.fatal(e); } } 请问一下遇到这个问题如何解决。

chenxumeng avatar Jan 18 '23 13:01 chenxumeng