2

i am using a external library in my android project getting javalang verify error when calling the class where that library imported, it is java.jxl library

any help please I created a directory called lib inside my library project and then referred it in the library. And this library is linked with the original android app.

also i getting below info

11-16 18:12:40.230: W/dalvikvm(14253): VFY: unable to resolve static method 260: Ljxl/Workbook;.getWorkbook (Ljava/io/InputStream;)Ljxl/Workbook;
11-16 18:12:40.230: D/dalvikvm(14253): VFY: replacing opcode 0x71 at 0x000c
11-16 18:12:40.230: W/dalvikvm(14253): VFY: unable to resolve exception class 124 (Ljxl/read/biff/BiffException;)
11-16 18:12:40.230: W/dalvikvm(14253): VFY: unable to find exception handler at addr 0x11
11-16 18:12:40.230: W/dalvikvm(14253): VFY:  rejected Lcom/kd/hockymain/Kdexcel;.getfile ()V
11-16 18:12:40.230: W/dalvikvm(14253): VFY:  rejecting opcode 0x0d at 0x0011
11-16 18:12:40.230: W/dalvikvm(14253): VFY:  rejected Lcom/kd/hockymain/Kdexcel;.getfile ()V
11-16 18:12:40.230: W/dalvikvm(14253): Verifier rejected class Lcom/kd/hockymain/Kdexcel;

1 Answer 1

1

Libraries should be put in the libs/ directory (not lib/, note the trailing slash). See this answer.

This will convert the compiled libraries code to the Dalvik format, and will provide the symbols definitions for Eclipse to work.

Sign up to request clarification or add additional context in comments.

1 Comment

great, the answer from ur link amazing it solved my problem completely, I should find that link before, Thank u lot

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.