Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto complete not working in android studio

I am a starter in android development and I started off with eclipse.. But it started giving lot of problems. So I switched to android studio. Got it set up successfully and for couple of weeks it was ok. Now, for some reason, the auto complete feature is not working. It is not giving any choices while typing, so I tried ctrl-enter. It says no suggestions. I browsed through similar queries and tried the following.

  1. Disabling Power Save in File menu.
  2. Checking basic complete and smart type completion in IDE settings (editor)
  3. Invalidate caches and restart.

But non of these seems to work.

like image 997
Lakshmichandra benkimachandran Avatar asked Mar 20 '15 04:03

Lakshmichandra benkimachandran


People also ask

How do you use auto complete on Android?

Users can enable or disable autofill as well as change the autofill service by navigating to Settings > System > Languages & input > Advanced > Input assistance > Autofill service.

How do I set AutoComplete text on Android?

If you want to get suggestions , when you type in an editable text field , you can do this via AutoCompleteTextView. It provides suggestions automatically when the user is typing. The list of suggestions is displayed in a drop down menu from which the user can choose an item to replace the content of the edit box with.

How do I open suggestions in Android Studio?

if the autocomplete isn't working for you in Android Studio, just press File and uncheck the Power save mode, it should work fine after that. if power save mode is already unchecked then first check then uncheck them.

What is Android auto complete?

Android AutoComplete TextViews is used for Completing the words automatically. Whenever the user writes a Character, Auto Complete TextView will show suggestions of the words that the user can select. AutoComplete TextViews is the subclass of EditText.


3 Answers

Try with CTRL + space and you will get the drop down .

like image 88
Subhalaxmi Avatar answered Nov 11 '22 08:11

Subhalaxmi


I had the same issue and solved it. Go File> Invalidate Caches / Restart... > Click at Invalidate and Restart

Then you can also check if Power Save Mode on File menu is disabled.

Source: Android Studio - Auto complete and other features not working

like image 40
Andrés Marafioti Avatar answered Nov 11 '22 08:11

Andrés Marafioti


These following steps are working for me:

  1. Close android studio
  2. Go to path/.AndroidStudio3.5/system/ delete caches folder
  3. Start Android Studio
like image 27
mili2501 Avatar answered Nov 11 '22 09:11

mili2501