Eidenai
Eidenai

Reputation: 441

Why Does Android Studio Fail To Resolve 'View'?

It's not really a big deal but I was just curious as to why I have to manually add:

import android.view.View;

When most other imports I can automatically resolve with alt-enter?

Upvotes: 0

Views: 49

Answers (2)

RussHWolf
RussHWolf

Reputation: 3654

In File > Settings, open Editor > General > Auto Import and check if View is on the excluded list.

Upvotes: 2

michal.luszczuk
michal.luszczuk

Reputation: 2903

In your Android Studio IDE choose File | Invalidate Caches/Restart and see if issue still exists

Upvotes: 0

Related Questions