Reputation:
I have no idea what is going on. I'm using Android Studio and i've created a new Blank Project.
I type import an and the only thing that shows up in Annotation
if i try to edit the existing 4 imports, it turns red and then switches everything back to those 4.
import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.view.Menu; import android.view.MenuItem;
I have no clue whats going on.
Upvotes: 2
Views: 7214
Reputation: 6140
Sorry for late answer.
I solved this problem using Invalidate Caches/Restart.
Go to File > Invalidate Caches/Restart.
The dialog will display and again select Invalidate Caches/Restart
.
Upvotes: 6
Reputation: 9050
Looks like this is the normal behavior.
For me, I tried to use Handler which strangely isn't automatically imported. So I typed an which returns only:
In fact typing android will not show any suggestion:
Only after I typed android. (with dot) then I begin to see android related packages.
But this is pointless because I don't know which package Handler is in. So in the end I have to look it up on internet and paste the whole thing manually.
Upvotes: 0
Reputation: 16122
You've provided very little information, but my guess is that your IDE is not locating your Android SDK.
Please make sure that everything is configured correctly. If it is, I suggest either providing more information (did your environment ever work properly? What are the changes?), or reinstall the IDE.
Upvotes: 0