Adding External Libraries in Android Studio
Android Studio makes a good job of importing projects from Eclipse. However, it has a tendency to fail to include some external libraries that are part of the Eclipse project. I will show you here the problem I have and how to remedy the situation.
The screen shot below shows a typical error that occurs when I import a project. Here the missing Amazon mobile ads library is the cause of the problem.
If you take a look at the file structure associated with this project, you can see that under the app folder there are only two sub-
What we need to do is manually create the lib folder and copy the missing jar file to this lib folder. This would modify the structure to that seen below.
You now need to restart Android Studio. Once restarted, you will see the project navigation tree now includes the lib folder and library jar file.
The final step is to right click on the library file name and select “Add As Library”.
After you do that the errors should disappear.