sawyer
sawyer

Reputation: 323

android studio does not recognize libraries

jumped electricity while I was working with Android Studio.. After I opened the new Android Studio and began the problems!

screenshot

The error would be written in red, have not been able to solve this problem I tried to uninstall and then reinstall, including JDK and SDK, but nothing to do!

It seems that they are not recognized the packages and library of Java.. Does anyone have any idea what has happened?

Upvotes: 13

Views: 14200

Answers (5)

mateusazis
mateusazis

Reputation: 53

Clicking File > Sync Project with Gradle Files worked for me.

Upvotes: 1

ghadada
ghadada

Reputation: 11

I had this problem, building was successful, just the editors flagging some of my imports as errors. I closed the project, deleted the .idea and .iml files then did new import of the project and it was solved.

Upvotes: 1

Had the same issue. Try This: File > Invalidate Caches / Restart

Upvotes: 10

luzma
luzma

Reputation: 363

I recently had this problem and solved it by closing the project and doing 'Import project'.

Upvotes: 29

Outofdate
Outofdate

Reputation: 695

It seems to be that your project doesn't contain any android SDK setting. Check this File > Project Structure > Project SDK should be a some of android sdk's. So as File > Project Structure > Modules > Dependencies tab

Upvotes: 4

Related Questions