简体   繁体   中英

Use External Java Library in Android

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 ?

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

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM