Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chenxumeng opened this issue Jan 18, 2023 · 0 comments
Open

Comments

@chenxumeng
Copy link

复现:

  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);
    }
    }
    请问一下遇到这个问题如何解决。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant