Apache Log4j in Android gives exception java.lang.VerifyError: org/apache/log4j/config/PropertySetter -
i trying integrate flickr in android using flickr4java library. flickr4java uses log4j logging. when try create instance of flickr, flickr flickr = new flickr(apikey, sharedsecret, new rest());
following stack trace
05-12 01:24:28.714 8449-8449/edu.sdsu.cs.sharepic e/androidruntime﹕ fatal exception: main process: edu.sdsu.cs.sharepic, pid: 8449 java.lang.verifyerror: org/apache/log4j/config/propertysetter @ org.apache.log4j.propertyconfigurator.parseappender(propertyconfigurator.java:805) @ org.apache.log4j.propertyconfigurator.parsecategory(propertyconfigurator.java:768) @ org.apache.log4j.propertyconfigurator.configurerootcategory(propertyconfigurator.java:648) @ org.apache.log4j.propertyconfigurator.doconfigure(propertyconfigurator.java:514) @ org.apache.log4j.propertyconfigurator.doconfigure(propertyconfigurator.java:580) @ org.apache.log4j.helpers.optionconverter.selectandconfigure(optionconverter.java:526) @ org.apache.log4j.logmanager.<clinit>(logmanager.java:127) @ org.apache.log4j.logger.getlogger(logger.java:117) @ com.flickr4java.flickr.rest.<clinit>(rest.java:46) @ edu.sdsu.cs.sharepic.model.flickr1.<init>(flickr1.java:28) @ edu.sdsu.cs.sharepic.activity.selectprofileactivity.init(selectprofileactivity.java:75) @ edu.sdsu.cs.sharepic.activity.selectprofileactivity.oncreate(selectprofileactivity.java:41) @ android.app.activity.performcreate(activity.java:5248) @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1110) @ android.app.activitythread.performlaunchactivity(activitythread.java:2162) @ android.app.activitythread.handlelaunchactivity(activitythread.java:2257) @ android.app.activitythread.access$800(activitythread.java:139) @ android.app.activitythread$h.handlemessage(activitythread.java:1210) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:136) @ android.app.activitythread.main(activitythread.java:5086) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:515) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:785) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:601) @ dalvik.system.nativestart.main(native method)
i guessing has got configuration of log4j library, don't know how solve problem. appreciated.
log4j uses apis java.beans missing in android. try library https://code.google.com/archive/p/android-logging-log4j/ have yet @ tough
Comments
Post a Comment