0

Good morning every body ,Please i have an error at my android application when i try to import file.jar .. I really tried a lot of solution but the error is the same. Can u help me please to solve the problem ! thank you

Oumayma Jaziri
  • 51
  • 1
  • 10

1 Answers1

1

Add your library folder in your root location of your project and copy all the library files there. For ex YourProject/yourlibrary then sync it and after that you need to mention that library in settings.gradle e.g include ':yourlibrary' one more thing you need to do is to add this line in build.gradle(Module app)

compile files('libs/yourlibrary')

here is the second way to do this just Go->File in android studio after that find project structure then click on Dependencies -> click on green "+" icon then click on File Dependencies select your required file from your libs or library folder and click ok.

Nowshad
  • 294
  • 1
  • 14