Reputation: 323
jumped electricity while I was working with Android Studio.. After I opened the new Android Studio and began the problems!
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
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
Reputation: 493
Had the same issue.
Try This: File > Invalidate Caches / Restart
Upvotes: 10
Reputation: 363
I recently had this problem and solved it by closing the project and doing 'Import project'.
Upvotes: 29
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