I have an android project that consist of .jar file's library and some library project's that have not any gradle file's, when i import this project in Android studio i faced to some error's that tell me this librarie's are not applied how can solve this problem?
Asked
Active
Viewed 171 times
3
-
1please take a screen shot of your error's – Sajad Garshasbi Jul 20 '15 at 13:41
-
1The fact that your errors complain about missing resources tell me that your libraries cannot be JARs. JARs cannot contain Android resources. – Bryan Herbst Jul 20 '15 at 13:54
-
1There is another thread about this. You can look into that http://stackoverflow.com/questions/16588064/how-do-i-add-a-library-project-to-the-android-studio – Jul 20 '15 at 13:58
2 Answers
0
To add a Jar Dependency in Android Studio. put that jar file in Your project-->app-->libs folder. and then follow these steps
- Go to File --> Project Structure
- On the left hand side you will see app module. click on that and then on the right hand side select Dependencies tab
- Now click (+) button on the right
- Select file dependency
- A dialog will appear that let you choose your jar file
- select the jar you want to add and click ok. DONE

Abdul Mohsin
- 1,253
- 1
- 13
- 24
0
You need to make sure all your modules that have the support library as dependency also have the compile SDK set to 21 . So go to Project Structure and check all the modules on the left hand side.

Anil Meenugu
- 1,411
- 1
- 11
- 16