Use External Java Library in Android

120 Views Asked by At

I have to use one of mashape api in my android application, for that I have to include their java support library named unirest to my android project, I have added that library via build configuration settings. but when I run the project it throws java.lang.ExceptionInInitializerError and stops application.is there any way to resolve this problem ?

1

There are 1 best solutions below

2
On

when using third-party libs on android you should follow these steps:

  1. right click on your project
  2. select properties from the menu
  3. in the new window select Java build path
  4. in Order and export tab make sure that the libraries are checked
  5. click ok and run

enter image description here