Glenn Bech
Glenn Bech

Reputation: 6182

IntelliJ can't see Android SDK classes

I have problems From time to time with my ItelliJ Android projects. When I start up, IntelliJ will not recognize the Android classes, and shows compiler errros. The project dependencies look okay.

I have been using a work-around for this that involves setting up a new Android SDK in the project. This of course is not optimal, and now that fails as well.

Does anyone else experience this?

Upvotes: 5

Views: 1336

Answers (2)

M.Sameer
M.Sameer

Reputation: 3141

Plain invalidate and restart did not solve the problem for me. I had to delete conflicting libraries first. Here is what I did:

  1. go to project structure screen
  2. select libraries
  3. delete all libraries with errors
  4. go to file -> invalidate cache/restart.
  5. choose invalidate and restart

I have to say that after the restart some libraries with errors returned back but the problem was resolved though!

enter image description here

Upvotes: 0

Glenn Bech
Glenn Bech

Reputation: 6182

Solved by file/invalidate caches. No Idea what breakes the environment.

Upvotes: 8

Related Questions