Android Studio: Text cursor disappears/gone after open some other class or pasting text in different classes Android Studio: Text cursor disappears/gone after open some other class or pasting text in different classes xml xml

Android Studio: Text cursor disappears/gone after open some other class or pasting text in different classes


command + O
type some words
esc

cursor appear, works for me


Just update the date time to proper date time.

Permanent workaround: 1

After studying a lot, I found that my system time was incorrect. (On my pc, it was because of windows time service error and not because of CMOS battery. while in some cases CMOS battery may cause this.).

  1. Just update correct the date/time and the cursor will be visible.
  2. If it is still not, close android studio, update correct and start android studio again.

Permanent workaround: 2

Reinstall windows and immediately install antivirus before installing any other software. (Mome malware can affect the working of time service in PC.). (Those who keep antivirus setup file/s on PC itself or USB device, they must check out whether the setup is clear in itself.).

Workaround: 3

On the left pane in android studio, strangely, all my classes were shown as singleton while they weren't.

  1. I pressed multiple combinations multiple times of alter / shift / ctrl / mouse clicks to to check whether any key is stuck (which seldom happens).

  2. I put Android Studio into power save mode: android studio -> file -> power save mode and tried to work again.

  3. I corrected my system date (it was 2 days behind than current.)

  4. Restarted the PC. The issue is resolved.

  5. Disabled power save mode.

Temporary solution:

No need to close project or android studio.

Click on the scroll button on the right of the editing pane or on suggestions yellow lines somewhere else on the same vertical scroll bar line.

enter image description here


I have same problem toobut I solved with this trick..

Go to File-> Invalidate Caches / Restart

Now cursor should appear..