Can't Auto Complete In Xml Files In Android Studio
Solution 1:
I finally notice it was only the current XML file I was working on which had the issue, and inside a relative layout that have been defined from the WYSWYG editor. Don't know why exactly, rewrite it and everything fine again.
Solution 2:
You can try File -> Invalidate Cache/Restart
. That did it for me.
Solution 3:
If you cannot use autocomplete in any xml, the working solution is here. However, if the problem is only with some xml files, you may have used custom views in them, where autocomplete will not work. The workaround is to temporarily change your custom view's name to its original android view and use autocomplete inside, and then revert the view to its custom name.
Solution 4:
You can check these from preferences.
Settings(Preferences in mac)->Editor->Code Completion
Please double check power safe mode too. it should be off
Solution 5:
reset your android studio (or) find .AndroidStudio(version) in your system in that config will be there delete it and reopen android studio it will ask default settings
Post a Comment for "Can't Auto Complete In Xml Files In Android Studio"