
Hi Chris, It looks like Stax support was accidentally merged from logback 1.1.0 into the latest release of logback-android [1]. I've reverted that particular commit [2], and it will be in the next release some time this week. I'll look into creating an integration test to prevent such errors in the future. In the meantime, you can add a Proguard rule to ignore those warnings or to remove the offending package: ch.qos.logback.core.joran.event.stax Tony [1] https://github.com/tony19/logback-android/commit/586e77a3d56908a2ba7d0ed6ec6... [2] https://github.com/tony19/logback-android/commit/82fcc90fa922f11c67dca4663f5... On Mon, Jul 7, 2014 at 2:25 PM, Chris Kelly <chris@thursby.com> wrote:
Hello,
I've been building an app with log back-android and have it configured to use file and logcat appenders. It works exactly as I want when building a debug version via Eclipse ADT or with 'ant debug'. However, with a release build and Proguard enabled, I have ~50 warnings locating referenced classes from the javax.xml.Stream package. As far as I can tell, this package doesn't existin in android. Is there any additional dependency I have overlooked?
I have downloaded both the slf4j and logback-android jar's and added the documented Proguard rules to my project as well.
Below is a sample of my 'ant release' build log where project1 is my app and dependency is an android library project.
[proguard] Reading input... [proguard] Reading program jar [/Users/chris/Projects/android/Android/project1/bin/proguard/original.jar] [proguard] Reading program jar [/Users/chris/Projects/android/Android/dependency/bin/classes.jar] [proguard] Reading program jar [/Users/chris/Projects/android/Android/Licensing/bin/classes.jar] [proguard] Reading program jar [/Users/chris/Projects/android/Android/dependency/libs/slf4j-api-1.7.6.jar] [proguard] Reading program jar [/Users/chris/Projects/android/Android/dependency/libs/logback-android-1.1.1-2.jar] [proguard] Reading program jar [/Users/chris/Projects/android/Android/project1/libs/android-support-v4.jar] [proguard] Reading library jar [/Users/chris/Projects/android/adt-bundle-mac-x86_64-20140624/sdk/platforms/android-19/android.jar] [proguard] Initializing... [proguard] Warning: ch.qos.logback.core.joran.event.stax.BodyEvent: can't find referenced class javax.xml.stream.Location [proguard] Warning: ch.qos.logback.core.joran.event.stax.BodyEvent: can't find referenced class javax.xml.stream.Location [proguard] Warning: ch.qos.logback.core.joran.event.stax.BodyEvent: can't find referenced class javax.xml.stream.Location [proguard] Warning: ch.qos.logback.core.joran.event.stax.BodyEvent: can't find referenced class javax.xml.stream.Location [proguard] Warning: ch.qos.logback.core.joran.event.stax.EndEvent: can't find referenced class javax.xml.stream.Location [proguard] Warning: ch.qos.logback.core.joran.event.stax.EndEvent: can't find referenced class javax.xml.stream.Location [proguard] Warning: ch.qos.logback.core.joran.event.stax.EndEvent: can't find referenced class javax.xml.stream.Location [proguard] Warning: ch.qos.logback.core.joran.event.stax.EndEvent: can't find referenced class javax.xml.stream.Location [proguard] Warning: ch.qos.logback.core.joran.event.stax.StartEvent: can't find referenced class javax.xml.stream.events.Attribute [proguard] Warning: ch.qos.logback.core.joran.event.stax.StartEvent: can't find referenced class javax.xml.stream.events.Attribute [proguard] Warning: ch.qos.logback.core.joran.event.stax.StartEvent: can't find referenced class javax.xml.stream.Location
Thanks for the help, Chris
_______________________________________________ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user