Android Studio - automatic insertion of import class using alt + enter does not work

Android Studio - automatic insertion of import class using alt + enter does not work

Hi,

I'm still struggling with the error cannot find symbol in Android studio, when I don't know which class to import into Android studio. The abbreviation alt + enter for autoimport should work for that, but unfortunately I can't. Can anyone advise what to do with it? Thanks

REPLY


Hi,

To import an auto java class in android studio, follow these steps:

Editor - Code style - Java - Imports
- use single class import
- insert imports for inner classes

Editor - General - Auto Import - Java
- show import popup
- optimize imports on the fly
- add unambiguous import on the fly

Then just press alt + enter in the given place, which causes the error cannot find symbol, and the class will be imported itself

As for android libraries, I'm looking in the Android package index:
developer.android.com/reference/packages

Související obsah

android

programovani

android-studio

java

Komentáře

Vaše reakce na Android Studio - nefunguje automatické vkládání import class pomocí alt+enter

Reference

Podívejte se na naše reference

Prohlédnout

Aplikace

Podívejte se na naše aplikace

Prohlédnout

Co umíme?

Podívejte se co umíme

Prohlédnout

Co umíme?

Vytváříme sofistikované aplikace pro náročné

Od webových aplikací přes android až po převodové můstky či složité informační systémy.

Podívejte se k nám

Máte ještě čas? Podívejte se na další rubriky

Tento web používá soubory cookie. Dalším procházením tohoto webu vyjadřujete souhlas s jejich používáním.. Více informací zde.