'unable to write code in the main activity java file in android studio
After upgrade to ver 4.1.1, I am not able to write code in the MainActivity.java and the code is not editable in Android Studio. How can I correct it?
Solution 1:[1]
The problem faced has been solved by reverting Android Studio to its default settings.
Solution 2:[2]
If I am not wrong when you click on any line in the source code, the lines get highlighted but the caret indicator is not showing and the code is not editable.
I have faced the same problem many times and tried
After File -> Invalidate Caches/Restart the problem has been solved.
Solution 3:[3]
I was facing this exact same problem. I solved it by pressing the Insert key once—apparently, I had inadvertently toggled Insert/Overwrite mode, and that was preventing me from editing code.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | SANAL KUMAR P D |
| Solution 2 | Monu Rohilla |
| Solution 3 | Cody Gray |
