我尝试过很多让Flickr的API在我的Android应用程序中运行的方法,但无论我尝试做什么(Maven,将jar复制到/ libs文件夹,将外部jar作为库导入)似乎都没有用我收到了这个错误:
12-20 11:16:24.641: D/dalvikvm(1568): VFY: replacing opcode 0x72 at 0x0002
12-20 11:16:24.641: I/dalvikvm(1568): Could not find method org.slf4j.Logger.isDebugEnabled, referenced from method com.googlecode.flickrjandroid.REST.sendUpload
12-20 11:16:24.641: W/dalvikvm(1568): VFY: unable to resolve interface method 13907: Lorg/slf4j/Logger;.isDebugEnabled ()Z
12-20 11:16:24.641: D/dalvikvm(1568): VFY: replacing opcode 0x78 at 0x0002
12-20 11:16:24.641: W/dalvikvm(1568): Exception Ljava/lang/NoClassDefFoundError; thrown while initializing Lcom/googlecode/flickrjandroid/REST;
12-20 11:16:24.641: D/AndroidRuntime(1568): Shutting down VM
12-20 11:16:24.641: W/dalvikvm(1568): threadid=1: thread exiting with uncaught exception (group=0x41cbb300)
12-20 11:16:24.651: E/AndroidRuntime(1568): FATAL EXCEPTION: main
12-20 11:16:24.651: E/AndroidRuntime(1568): java.lang.ExceptionInInitializerError
12-20 11:16:24.651: E/AndroidRuntime(1568): at com.googlecode.flickrjandroid.Flickr.<init>(Flickr.java:223)
12-20 11:16:24.651: E/AndroidRuntime(1568): at com.googlecode.flickrjandroid.Flickr.<init>(Flickr.java:247)
12-20 11:16:24.651: E/AndroidRuntime(1568): at com.triandria.layouts.MainActivityLayout.changeBackgroundPicture(MainActivityLayout.java:152)