android studio 3.0.1
jdk 1.8
配置中文输入法 在android studio 文件夹下 /bin/studio.sh这个文件 打开
在文件里面加入
export XMODIFIERS=“@im=fcitx”
export GTK_IM_MODULE=“fcitx”
export QT_IM_MODULE=“fcitx”
前提是最好安装好搜狗输入法Linux版 官网有地址
这是我的studio.sh,.sh是linux下可执行脚本 sudo ./XXX.sh ,记录一下
#!/bin/sh
# ---------------------------------------------------------------------
# Android Studio startup script.
# ---------------------------------------------------------------------
export XMODIFIERS=“@im=fcitx”
export GTK_IM_MODULE=“fcitx”
export QT_IM_MODULE=“fcitx”
message()
{
TITLE=“Cannot start Android Studio”
if [ -n “`which zenity`” ]; then
zenity --error --title=“$TITLE” --text=“$1”
elif [ -n “`which kdialog`” ]; then
kdialog --error “ 1 " − − t i t l e " 1" --title " 1"−−title"TITLE”
elif [ -n “`which xmessage`” ]; then
xmessage -center “ERROR: $TITLE: $1”
elif [ -n “`which notify-send`” ]; then
notify-send “ERROR: $TITLE: $1”
else
echo “ERROR: $TITLE\n$1”
fi
}
isJDK()
{
if [ -z $1 ] || [ ! -x “$1/bin/java” ]; then
return 1
else
return 0
fi
}
UNAME=`which uname`
GREP=`which egrep`
GREP_OPTIONS=“”
CUT=`which cut`
READLINK=`which readlink`
XARGS=`which xargs`
DIRNAME=`which dirname`
MKTEMP=`which mktemp`
RM=`which rm`
CAT=`which cat`
TR=`which tr`
if [ -z “ U N A M E " − o − z " UNAME" -o -z " UNAME"−o−z"GREP” -o -z “ C U T " − o − z " CUT" -o -z " CUT"−o−z