通过登录找不到LoginAuthenticator [英] LoginAuthenticator not found by logback
问题描述
我想在我的android项目中使用logback-android-1.1.1-2.jar
和slf4j-api-1.7.6.jar
.但是我在Android Studio中收到以下错误:
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:
无法解析Lch/qos/logback/core/net/LoginAuthenticator的超类; (2251) 类"Lch/qos/logback/core/net/LoginAuthenticator"的链接;失败
Unable to resolve superclass of Lch/qos/logback/core/net/LoginAuthenticator; (2251) Link of class 'Lch/qos/logback/core/net/LoginAuthenticator;' failed
我已经打开了logback-android.jar
,并且看到LoginAuthenticator
文件存在.您知道如何解决此问题吗?可能是Android Studio引起的吗?
I have opened logback-android.jar
and I see thatLoginAuthenticator
file exists. Do you have any idea how to resolve this problem ? It could be caused by Android Studio?
成绩文件:
应用插件:"android"
apply plugin: 'android'
android { compileSdkVersion 19 buildToolsVersion"19.0.3"
android { compileSdkVersion 19 buildToolsVersion "19.0.3"
defaultConfig {
minSdkVersion 14
targetSdkVersion 19
versionCode 1
versionName "0.1"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
} lintOptions { abortOnError false } }
依赖项{ 编译'com.android.support:support-v4:19.+' 编译fileTree(dir:'libs',包括:['* .jar']) 编译'com.android.support:appcompat-v7:+' 编译"joda-time:joda-time:2.2"}
dependencies { compile 'com.android.support:support-v4:19.+' compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:+' compile "joda-time:joda-time:2.2" }
我的libs目录:
推荐答案
Apply this it worked for m
[-dontwarn ch.qos.logback.core.*]
[-dontwarn javax.mail.**]
[-dontwarn javax.naming.Context]
[-dontwarn javax.naming.InitialContext]
还从您的Java主页添加(rj.jar).
also add (rj.jar) from your java home.
这篇关于通过登录找不到LoginAuthenticator的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!