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.
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.
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
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:
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.
Close Android Studio
Go to c_users_path_on_windows/.AndroidStudio3.5/system/
Delete the cache
folder
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
).
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 SettingsEditor
-> 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With