English 中文(简体)
Add Java-Library to Anders-Project
原标题:Add Java-Library to Android-Project

I imported this morning following JAVA-Libary to my Android-Project: JSON-Libary I imported it over Project->Properties ->Add external Jar files. After that I wrote my code with which I use this Libary, but I get this Error ouf of LogCat:


11-24 13:20:04.371: W/dalvikvm(29450): Unable to resolve superclass of Lnet/sf/json/JSONException; (420)
11-24 13:20:04.371: W/dalvikvm(29450): Link of class  Lnet/sf/json/JSONException;  failed
11-24 13:20:04.381: W/dalvikvm(29450): VFY: unable to resolve exception class 206 (Lnet/sf/json/JSONException;)
11-24 13:20:04.381: W/dalvikvm(29450): VFY: unable to find exception handler at addr 0x2e
11-24 13:20:04.381: W/dalvikvm(29450): VFY:  rejected Lnet/sf/json/JSONSerializer;.toJSON (Ljava/lang/Object;Lnet/sf/json/JsonConfig;)Lnet/sf/json/JSON;
11-24 13:20:04.381: W/dalvikvm(29450): VFY:  rejecting opcode 0x0d at 0x002e
11-24 13:20:04.381: W/dalvikvm(29450): VFY:  rejected Lnet/sf/json/JSONSerializer;.toJSON (Ljava/lang/Object;Lnet/sf/json/JsonConfig;)Lnet/sf/json/JSON;
11-24 13:20:04.381: W/dalvikvm(29450): Verifier rejected class Lnet/sf/json/JSONSerializer;

似乎这样,我就进口了这张假象,我如何在我的安康项目中使用这一利宾,我如何进口我可以使用的该词?

Thx for your help in Advance

耳聋

PS: I know there is a JSON-Libary in it, but I like to use this one, how can I realize that? To import the Libaries I tried this: How to Import Java-Libaries, but dosn t work :( What also looks a bit strange, the libaries don t show up in "External Libaries" it looks like this:

“Show

最佳回答
问题回答

在“Eclipse”中,确保贵图书馆在建时向贵方出口。 检查“Java Building Path”项目特性。 在命令和出口表上,检查贵图书馆,以列入贵片。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...