Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android studio does not recognize libraries

Tags:

android

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?

like image 721
sawyer Avatar asked Mar 21 '15 21:03

sawyer


People also ask

Where do I put libraries in Android Studio?

Navigate to File > Project Structure > Dependencies. In the Declared Dependencies tab, click and select Library Dependency in the dropdown. In the Add Library Dependency dialog, use the search box to find the library to add.

How do I add a module to a project structure?

Add a new module to your project by clicking File > New > New Module. Provides a container for your app's source code, resource files, and app level settings such as the module-level build file and Android Manifest file.


2 Answers

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

like image 124
luzma Avatar answered Oct 06 '22 23:10

luzma


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.

like image 39
ghadada Avatar answered Oct 07 '22 01:10

ghadada