This question already has an answer here:
I am new in Android Studio. I don't know how to import a class in Android Studio, using shortcut key?
I have used Ctrl + 1 like Eclipse but it's not working in Android Studio.
Any solution ?
This question already has an answer here:
I am new in Android Studio. I don't know how to import a class in Android Studio, using shortcut key?
I have used Ctrl + 1 like Eclipse but it's not working in Android Studio.
Any solution ?
1.step 1 -> Where red error code is showing click on that
2.step 2 -> Now you use ALT+Enter key to import.
Follow this link its useful for you to find shortcut key for android studio :
http://javapapers.com/wp-content/uploads/2014/08/Android-Studio-Shortcuts-You-Need-the-Most.pdf
Alt + Enter in android studio .
Alt + Enter key binding
Please read Android Studio Tips and Tricks
Look everytool has its own different ways
for import you can use Alt + Enter
here is link for shortcuts for android studio
for easiness you can do this , you can use Eclipse shortcuts in Androidstudio
Use the Alt and Enter keys to import.
Also, it's worth noting that you can auto-import classes in Android Studio. Just search for it in Settings and check off "Add unambiguous imports on the fly".