This is the code that causes the VerifyError: Repository myRepository = new HTTPRepository("http://someserver", "someid");
On Jun 26, 9:38 pm, Max <ma...@mackzweb.com> wrote: > Oh, thanks. I first tried it without that line and thought this would > be a step towards the solution, because without it I get the following > errors: > > E/dalvikvm( 743): Could not find method > org.slf4j.LoggerFactory.getLogger, referenced from method > org.openrdf.http.client.HTTPClient.<init> > W/dalvikvm( 743): VFY: unable to resolve static method 11055: Lorg/ > slf4j/LoggerFactory;.getLogger (Ljava/lang/Class;)Lorg/slf4j/Logger; > W/dalvikvm( 743): VFY: rejecting opcode 0x71 at 0x0007 > W/dalvikvm( 743): VFY: rejected Lorg/openrdf/http/client/ > HTTPClient;.<init> ()V > W/dalvikvm( 743): Verifier rejected class Lorg/openrdf/http/client/ > HTTPClient; > > and > > E/AndroidRuntime( 743): Uncaught handler: thread main exiting due to > uncaught exception > E/AndroidRuntime( 743): java.lang.VerifyError: > org.openrdf.http.client.HTTPClient > E/AndroidRuntime( 743): at > org.openrdf.repository.http.HTTPRepository.<init>(HTTPRepository.java: > 56) > E/AndroidRuntime( 743): at > org.openrdf.repository.http.HTTPRepository.<init>(HTTPRepository.java: > 61) > E/AndroidRuntime( 743): at com.test.csxpoi.CsxPOIActivity.onCreate > (CsxPOIActivity.java:28) > E/AndroidRuntime( 743): at > android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: > 1123) > E/AndroidRuntime( 743): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java: > 2231) > E/AndroidRuntime( 743): at > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: > 2284) > E/AndroidRuntime( 743): at android.app.ActivityThread.access$1800 > (ActivityThread.java:112) > E/AndroidRuntime( 743): at android.app.ActivityThread$H.handleMessage > (ActivityThread.java:1692) > E/AndroidRuntime( 743): at android.os.Handler.dispatchMessage > (Handler.java:99) > E/AndroidRuntime( 743): at android.os.Looper.loop(Looper.java:123) > E/AndroidRuntime( 743): at android.app.ActivityThread.main > (ActivityThread.java:3948) > E/AndroidRuntime( 743): at java.lang.reflect.Method.invokeNative > (Native Method) > E/AndroidRuntime( 743): at java.lang.reflect.Method.invoke > (Method.java:521) > E/AndroidRuntime( 743): at com.android.internal.os.ZygoteInit > $MethodAndArgsCaller.run(ZygoteInit.java:782) > E/AndroidRuntime( 743): at com.android.internal.os.ZygoteInit.main > (ZygoteInit.java:540) > E/AndroidRuntime( 743): at dalvik.system.NativeStart.main(Native > Method) > > On Jun 26, 9:26 pm, Raphael <r...@android.com> wrote: > > > > > On Fri, Jun 26, 2009 at 11:32 AM, Max<ma...@mackzweb.com> wrote: > > > > I'm trying to use an external library packaged in one JAR file > > > (openRDF Sesame 2.2.4 [1]). As suggested in this group, I first added > > > the JAR to a new folder in my project, then added it to the Java build > > > path via the project properties in Eclipse. Now I could already use > > > the classes from the library in my source code without getting any > > > errors. I also added the line <uses-library > > > android:name="org.openrdf" /> to the manifest file inside > > > <application>. > > > You don't need to do that. > > <uses-library> is used to indicate your app depends on an optional > > library that is built-in on the device, e.g. maps. > > > In your case, simply add the Jar as a dependency to your Eclipse > > project and ADT will automatically embed it in the generated APK. > > > R/ > > > > The problem is that as soon as I try to run the app, I get an > > > installation error (INSTALL_FAILED_MISSING_SHARED_LIBRARY) on the > > > console and I'm told (via logcat) that my package "requires > > > unavailable shared library org.openrdf". > > > > Where's my mistake? > > > > Thanks, > > > Max > > > > [1]http://ovh.dl.sourceforge.net/sourceforge/sesame/openrdf-sesame-2.2.4... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---