Skip to content Skip to sidebar Skip to footer

Loginauthenticator Not Found By Logback

I want to use logback-android-1.1.1-2.jar and slf4j-api-1.7.6.jar in my android project. But I get following error in Android Studio: Unable to resolve superclass of Lch/qos/logba

Solution 1:

Apply this it worked for m
[-dontwarn ch.qos.logback.core.*][-dontwarn javax.mail.**][-dontwarn javax.naming.Context][-dontwarn javax.naming.InitialContext]

also add (rj.jar) from your java home.

Solution 2:

The error is that it can't find the superclass of LoginAuthenticator (not LoginAuthenticator itself), which is javax.mail.Authenticator. That class can be found in javamail-android's mail.jar. (Note that is not the standard Sun/Oracle mail.jar, which does not work in Android.)

I think you might also be missing a couple jars listed in [1]:

I would try copying the 3 jars to your libs directory (overwriting your existing mail.jar) and then perhaps a clean build.

[1] https://github.com/tony19/logback-android/wiki/Appender-Notes#smtpappender

Post a Comment for "Loginauthenticator Not Found By Logback"