Android Studio 4.1.2 编译 老项目 出现Gradle sync failed: Unsupported method: SyncIssue.getMultiLineMessage

Gradle sync failed: Unsupported method: SyncIssue.getMultiLineMessage().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
Consult IDE log for more details (Help | Show Log) (31 s 894 ms)

问题原因:Android Studio 4.1.2 编译老项目无法通过,主要原因是Gradle版本和Gradle Plugin插件版本问题。 阅读全文

Docker 安装 vim

在使用docker容器时,如果没有安装vim,输入vim命令时会出现提示“vim: command not found”。
而输入apt-get install vim命令时,会出现提示“Unable to locate package vim”。

bash: vim: command not found
root@3ae51f734902:/etc# apt-get install vim
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package vim 阅读全文