Ubuntu 18.04 解决Android Studio输入法不跟光标

围巾🧣 2021年07月17日 502次浏览

环境

系统 :

18.04-Ubuntu 
Linux jin-desktop 5.4.0-77-generic #86~18.04.1-Ubuntu SMP Fri Jun 18 01:23:22 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

CPU:

 Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz

Android_Studio 版本:按理Jetbrains家的都适用

Android Studio 4.2.2
Build #AI-202.7660.26.42.7486908, built on June 24, 2021
Runtime version: 11.0.11-internal+0-adhoc.jin.JetBrainsRuntime amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation

下载编译 JetBrainsRuntime

git clone https://github.com/JetBrains/JetBrainsRuntime.git
git clone https://gitee.com/xlxsui/jet-brains-runtime-patch.git
cp  JetBrainsRuntimePatch/idea.patch JetBrainsRuntime/
cd JetBrainsRuntime
git apply idea.patch
sudo apt-get install autoconf make build-essential libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev libxrandr-dev libcups2-dev libfontconfig1-dev libasound2-dev openjdk-11-jdk
sh ./configure --disable-warnings-as-errors
make images

修改运行环境变量

  1. 打开Android_studio 的bin目录,按各自的安装路径进

    cd /home/jin/software/android-studio/bin/
    
  2. 修改启动脚本

    sudo vim studio.sh
    

    前面加上刚刚编译好的路径变量

    image-20210712115141288

效果截图

image-20210712114255782