Maybe, in Ubuntu, to regain accentuation, it is only necessary to execute the command in the terminal:
ibus-daemon -drx
But in Elementary OS I did not have the same luck. It was necessary to do the following:
How I solved the Android Studio accent problem on Elementary OS.
First of all, This is Lementary OS problem (or Linux you are using) and not from Android Studio. So, no use reinstalling, won’t solve!
Solving...
In Elentary OS
Step 1: Install "ibus QT4".
In a terminal:
sudo apt install ibus-qt4
Step 2: Open the ibus
ibus-setup
Step 3: In the second tab, "Input Method", check if you have the option "Portuguese - Portuguese(Brazil)".
- 3.a) If you do not have the entry "Portuguese - Portuguese(Brazil)", click on the button next to "Add", search for "Portuguese - Portuguese(Brazil)" and add. Go to the step 3.B;
- 3.B) If you have the entry "Portuguese - Portuguese(Brazil)", delete the entry "English" and leave only the "Portuguese". Close the ibus and go to the step 4;
Step 4: After you close ibus, type in the terminal:
ibus-daemon -drx
Now do a test. This will solve the problem until the next reset. To keep running "4éva", you need to put the command of the step 4 on automatic startup (on Elementary OS).
You were luckier than I, who never saw accents in the code (nor in the comments). To see accents, I define strings in /res/values/strings.xml. and use them in place of hardcode strings in the code. I believe it’s the software’s strategy to avoid strange behaviors, but it’s just a hunch.
– Rene Freak
The problem is not there, the IDE is not accepting accents or strings.xml
– João Victor
Ah, got it. Try it like this: write the text on the Otepad, copy and paste. See if the app compiles and accepts the accents, I know... is not a solution, but a branch break. At least vc does not run out of accent.
– Rene Freak
Yes, it compiles. It has snippets of code in the project already with accents, before this error happens, the app runs normal.
– João Victor
Have you tried restarting the ide? Sometimes it gives bizarre bugs. here with me happens with certain frequency one that the ide simply "forgets" that I typed new code and insists on compiling the version "old".
– Mr_Anderson
Already, updated and rebooted.
– João Victor
Worst case scenario is just reinstalling the IDE, sometimes it’s faster than finding the solution, of course, knowing what the problem was is always good.
– Florida
I installed it on another computer and the accents worked well. I suspect it is some plugin. You have installed some recently?
– Rene Freak