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 ?
Asked
Active
Viewed 97 times
1 Answers
1
when using third-party libs on android you should follow these steps:
- right click on your project
- select properties from the menu
- in the new window select Java build path
- in Order and export tab make sure that the libraries are checked
- click ok and run

ymz
- 6,602
- 1
- 20
- 39
-
have you tried to move your third-party libs all the way up? – ymz Nov 27 '14 at 02:26
-
yes, it is not about that problem, I think android and java uses different byte code format, may be that's the problem. – programr Nov 27 '14 at 03:13