Files

1.3 KiB
Raw Permalink Blame History

插件 0.1.2:保存文件 API 兼容修复

0.1.1 在 Application.invokeLater 内显式调用 WriteIntentReadAction.run(ThrowableRunnable),其二进制签名在用户 IDE 中已经改变,导致 NoSuchMethodError。该调用是上一版修复引入的兼容问题。

0.1.2 删除对此静态方法的依赖,保留 Application.invokeLater 调度,在其提供的写意图上下文中保存文件;没有退回 ToolWindow.show 回调直接保存的旧实现。用户堆栈也显示 ApplicationImpl.runIntendedWriteActionOnCurrentThread 已包装此回调。依据 官方线程模型。

升级包:dist/remote-compilation-plugin-0.1.2.zip。通过 Install Plugin from Disk 安装后重启 Android Studio。设备下拉选择和独立配置侧栏保持可用。

编译目标仍为 IntelliJ 243,用户实际 IDE 上的运行验证需安装新版 ZIP 后进行。打包时检查 RemotePanel.class 不再引用 WriteIntentReadAction,避免再次交付带有已移除签名的字节码。

2026-11-24:离线执行 test buildPlugin 成功,7 项测试通过(包含此次字节码兼容回归测试);已检查发布 ZIP 中的版本为 0.1.2,RemotePanel.class 不含不兼容 API 引用。