Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio - Auto complete and other features not working

People also ask

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 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. Your app cannot override the user's autofill settings.

How do you code auto complete?

Enabling/Disabling Auto-completeIn your coding Tests, click the three dots and Enable/Disable the auto-complete feature as required. While typing your code in the editor: Press CTRL + Space key to trigger the auto-complete pop-up menu manually.


Go File > Invalidate Caches / Restart... > Click at Invalidate an Restart

enter image description here

enter image description here

This really works for me.

Source: https://code.google.com/p/android/issues/detail?id=61844#c4


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


Close Android Studio Go to C:\Users\UserName.android and rename the folder:

  • build-cache to build-cache_old

Go to C:\Users\UserName.AndroidStudio3.x\system OR (Android studio 4 and Higher) Go to C:\Users\UserName\AppData\Local\Google\AndroidStudio4.x and rename these folders:

  • caches to caches_old

  • compiler to compiler_old

  • compile-server to compile-server_old

  • conversion to conversion_old

  • external_build_system to external_build_system_old

  • frameworks to frameworks_old

  • gradle to gradle_old

  • resource_folder_cache to resource_folder_cache_old

Open the Android Studio and open your project again.


  1. Close Android Studio

  2. Go to c_users_path_on_windows/.AndroidStudio3.5/system/

  3. Delete the cache folder

  4. Start Android Studio

    This works for me.


Most of the times i have seen that the problem is that Power Save Mode is enabled, to disable go to Current inspection profile (lower right corner in Android Studio).

enter image description here


I have not run into this problem personally, but try checking the following settings (File -> Settings or Alt+F7):

Project Settings [name]
Inspections - ensure that Android and Android Lint is checked, or alternately just set it back to default using the dropdown box at the top.

IDE Settings
Editor -> Code Completion - ensure the Autopopup code completion is checked (and check the rest of the settings based on your preference.


Uncheck "Power Save Mode" in "File" tab

enter image description here