为什么log4j的概念模型是log4j错误级别的

Linux 下的纯 C 日志函数库: zlog
zlog是一个高性能、线程安全、灵活、概念清晰的纯C日志函数库。
下载地址:
zlog有这些特性:
&* &syslog分类模型,基于规则路由过滤,比log4j模型要正确高效,详见。
&* &日志格式定制,类似于log4j的pattern layout
&* &多种输出,包括动态文件、静态文件、stdout、stderr、syslog、用户自定义输出函数
&* &运行时手动或自动刷新配置(同时保证安全)
&* &高性能,在我的笔记本上达到338'638条日志每秒, 大概是syslog(3)配合rsyslogd的1000倍速度&
&* &高可靠性和速度之间的平衡,用户自定义多少条日志后fsync数据到硬盘
&* &用户自定义等级
&* &多线程和多进程环境下保证安全转档
&* &精确到微秒
&* &简单调用包装dzlog(一个程序默认只用一个分类)
&* &MDC,线程键-值对的表,可以扩展用户自定义的字段
&* &自诊断,可以在运行时输出zlog自己的日志和配置状态
&* &不依赖其他库,只要是个POSIX系统就成(当然还要一个C99兼容的vsnprintf)
本分类共有文章2篇,更多信息详见
& 2012 - 2016 & aiuxian.com &All Rights Reserved. &
/*爱悠闲图+*/
var cpro_id = "u1888441";I do get these errors after i updated Android Studio and the SDK:
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.chainsaw.ControlPanel$1) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.chainsaw.ControlPanel$2) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.chainsaw.ControlPanel$3) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.chainsaw.ControlPanel$4) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.chainsaw.ControlPanel$5) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.chainsaw.ControlPanel$6) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.chainsaw.ControlPanel$7) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.chainsaw.Main$1) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.chainsaw.MyTableModel$1) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.util.LogFileParser$1) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LF5SwingUtils$1) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$1) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$10) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$11) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$12) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$13) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$14) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$15) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$16) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$17) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$18) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$19) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$2) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$20) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$21) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$22) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$23) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$24) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$25) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$26) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$27) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Error:compiler that did not target the modern .class file format. The recommended
Error:solution is to recompile the class from source, using an up-to-date compiler
Error:and without specifying any "-target" type options. The consequence of ignoring
Error:this warning is that reflective operations on this class will incorrectly
Error:indicate that it is *not* an inner class.
Error:warning: Ignoring InnerClasses attribute for an anonymous inner class
Error:(org.apache.log4j.lf5.viewer.LogBrokerMonitor$28) that doesn't come with an
Error:associated EnclosingMethod attribute. This class was probably produced by a
Installed SDK:
All including rev. 25.1.2
Android Studio:
Android Studio 2.0
Build #AI-143.2739321, built on April 5, 2016
JRE: 1.7.0_80-b15 amd64
The build.gradle file of the project:
apply plugin: 'com.android.application'
signingConfigs {
storeFile file("somePath")
storePassword "..."
keyAlias "..."
keyPassword "..."
compileSdkVersion 22
buildToolsVersion "22.0.1"
def versionPropertiesFile = file('version.properties')
if (versionPropertiesFile.canRead()) {
def Properties versionProps = new Properties()
versionProps.load(new FileInputStream(versionPropertiesFile))
def code = versionProps['VERSION_CODE'].toInteger() + 1
versionProps['VERSION_CODE'] = code.toString()
println('count version up ' + code.toString())
versionProps.store(versionPropertiesFile.newWriter(), null)
defaultConfig {
multiDexEnabled true
signingConfig signingConfigs.mulco
applicationId "com.test.mulcoandroid"
minSdkVersion 19
targetSdkVersion 22
versionCode code
versionName "1.03.01"
throw new GradleException("Could not read version.properties!")
buildTypes {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.mulco
debuggable true
signingConfig signingConfigs.mulco
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.android.gms:play-services-maps:8.4.0'
compile project(':iCommonLibrary')
compile project(':mulcobluetooth')
compile project(':iScannerLibrary')
compile project(':iPictureLibrary')
compile 'com.android.support:multidex:1.0.1'
testCompile "junit:junit:4.12"
compile 'net.lingala.zip4j:zip4j:1.3.2'
and of the dependant iCommonLibrary:
apply plugin: 'com.android.library'
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
multiDexEnabled true
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"
buildTypes {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.squareup.okhttp:okhttp:2.5.0'
compile 'de.greenrobot:greendao:1.3.7'
compile 'commons-io:commons-io:2.4'
compile 'org.apache.commons:commons-lang3:3.3.2'
compile 'commons-codec:commons-codec:1.10'
compile 'de.mindpipe.android:android-logging-log4j:1.0.3'
compile 'org.slf4j:slf4j-api:1.6.4'
compile 'org.slf4j:slf4j-log4j12:1.6.4'
compile 'com.google.android.gms:play-services-location:8.4.0'
compile 'commons-net:commons-net:3.3'
compile 'com.jjoe64:graphview:4.0.1'
compile 'com.android.support:support-annotations:22.0.1'
build.gradle of iPictureLibrary:
apply plugin: 'com.android.library'
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
minSdkVersion 19
targetSdkVersion 22
versionCode 1
versionName "1.0"
buildTypes {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'it.sephiroth.android.library.horizontallistview:hlistview:1.2.2'
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.jakewharton:disklrucache:2.0.2'
compile project(':iCommonLibrary')
build.gradle of iScannerLibrary:
apply plugin: 'com.android.library'
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"
buildTypes {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.zxing:core:3.2.1'
compile 'com.google.zxing:android-core:3.2.1'
compile files('libs/GrabbaSDK/Grabba driver for android v1.122.jar')
compile project(':iCommonLibrary')
build.gradle file of mulcobluetooth:
apply plugin: 'com.android.library'
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"
buildTypes {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
defaultConfig
multiDexEnabled true
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'org.apache.commons:commons-lang3:3.3.2'
compile 'commons-io:commons-io:2.4'
I hope i provided any important information
If someone does know anything ... please help me! I cannot find anything in this "NEULAND"
Sorry for the long question... Thanks for anyone who has made it up to here.
I updated the dependencies to:
compile 'org.apache.logging.log4j:log4j-core:2.5'
compile 'org.slf4j:slf4j-api:1.7.21'
compile 'org.slf4j:slf4j-log4j12:1.7.21'
But nothing has changed. I still have about 500 build errors .... I deleted mindpipe as reference an coded it by myself ... Nothing happened!
Opened a ticket:
Issue 206867
After uninstall Android Studio 2.0 and install 1.5.1 again I get the following warning:
Warning:Gradle version 2.10 is required. Current version is 2.8. If using the gradle wrapper, try editing the distributionUrl in C:\Sources\iRecyApps\iRecyMulco-1.0.1iOS\gradle\wrapper\gradle-wrapper.properties to gradle-2.10-all.zip
So the gradle version was updated by 2...
I informed myself about the current gradle version and it's 2.12
I downloaded both and tried this:
You need to change File > Settings > Builds,Execution,Deployment > Build Tools > Gradle >Gradle home path
On Mac OS, change the path in Android Studio > Preferences > Builds,Execution,Deployment > Build Tools > Gradle >Gradle home
Or set Use default gradle wrapper and edit Project\gradle\wrapper\gradle-wrapper.properties files field distributionUrl like this
according to:
Still nothing
解决方案 This is a warning which is safe to ignore.
Add the following lintOptions to your build.gradle:
defaultConfig { ... }
signingConfigs { ... }
compileOptions { ... }
buildTypes { ... }
// Run lint checks but don't abort build
lintOptions {
abortOnError false
See top answer
if you need finer ways to tweak Lint options.
本文地址: &
我做我更新的Android Studio和SDK后得到这些错误: 错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.chainsaw.ControlPanel $ 1)不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.chainsaw.ControlPanel $ 2)不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.chainsaw.ControlPanel $ 3)不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.chainsaw.ControlPanel $ 4)不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.chainsaw.ControlPanel $ 5),不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.chainsaw.ControlPanel $ 6)不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.chainsaw.ControlPanel $ 7)不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.chainsaw.Main $ 1)不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.chainsaw.MyTableModel $ 1)不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.util.LogFileParser $ 1)不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LF5SwingUtils $ 1)不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 1)不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 10)不来与错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 11),不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 12)不来与错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 13)不来与错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 14)不来与错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 15),不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 16),不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 17),不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 18),不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 19),不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 2)不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 20)不来与错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 21),不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 22)不来与错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 23)不来与错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 24)不来与错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 25),不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 26),不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 27),不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产错误:编译器并没有针对现代.class文件格式。建议错误:溶液是重新编译从源类,使用最多的最新的编译器错误:与不指定任何“-target”类型选项。忽视的后果错误:此警告在这个类反射操作不当会错误:表明它是*不*内部类。错误:警告:忽略InnerClasses属性为匿名内部类错误:(org.apache.log4j.lf5.viewer.LogBrokerMonitor $ 28),不拿出一个错误:相关EnclosingMethod属性。这个类可能是由一个生产 安装的SDK:所有包含rev。 25.1.2
Android的工作室: Android的工作室2.0打造#AI-143.2739321,建于日JRE:1.7.0_80-b15的AMD64 该项目的build.gradle文件: 应用插件:'com.android.application“安卓{signingConfigs {
storeFile文件(“somePath”)
storePassword“...”
keyAlias“...”
keyPassword“...”
}}compileSdkVersion 22buildToolsVersion“22.0.1”高清versionPropertiesFile =文件(“version.properties')如果(versionPropertiesFile.canRead()){
高清性能versionProps =新特性()
versionProps.load(新的FileInputStream(versionPropertiesFile))
DEF code = versionProps ['VERSION_ code']。toInteger()+ 1
versionProps ['VERSION_ code'] = code.toString()
的println(“计数版本升级'+ code.toString())
versionProps.store(versionPropertiesFile.newWriter(),NULL)
defaultConfig {
multiDexEnabled真
signingConfig signingConfigs.mulco
的applicationID“com.test.mulcoandroid”
19的minSdkVersion
targetSdkVersion 22
版本code code
的versionName“1.03.01”
抛出新GradleException(“无法读取version.properties!”)}buildTypes {
minifyEnabled假
proguardFiles getDefaultProguardFile('proguard的-android.txt'),'proguard-rules.pro“
signingConfig signingConfigs.mulco
signingConfig signingConfigs.mulco
}}packagingOptions {
排除“META-INF / LICENSE.TXT”
排除“META-INF / NOTICE.txt”}}依赖{
编译文件树(导演:'库',包括:['的* .jar'])
编译“com.google.android.gms:播放服务,地图:8.4.0”
编制项目(':iCommonLibrary')
编制项目(':mulcobluetooth')
编制项目(':iScannerLibrary')
编制项目(':iPictureLibrary')
编译“com.android.support:multidex:1.0.1”
testCompile“的JUnit:JUnit的:4.12”
编译“net.lingala.zip4j:zip4j:1.3.2”} 和依赖iCommonLibrary的: 应用插件:'com.android.library“安卓{compileSdkVersion 22buildToolsVersion“22.0.1”defaultConfig {
multiDexEnabled真
16的minSdkVersion
targetSdkVersion 22
版本code 1
的versionName“1.0”}buildTypes {
minifyEnabled假
proguardFiles getDefaultProguardFile('proguard的-android.txt'),'proguard-rules.pro“
}}packagingOptions {
排除“META-INF / LICENSE.TXT”
排除“META-INF / NOTICE.txt”}}依赖{
编译文件树(导演:'库',包括:['的* .jar'])
编译“com.squareup.retrofit:改造:1.9.0”
编译“com.squareup.okhttp:okhttp:2.5.0”
编译“de.greenrobot:greendao:1.3.7”
编译“公地IO:公地IO:2.4”
编译“org.apache.commons:公地lang3:3.3.2”
编译“commons- codeC:commons- codeC:1.10”
编译“de.mindpipe.android:android-logging-log4j:1.0.3”
编译“org.slf4j:SLF4J的API:1.6.4”
编译“org.slf4j:SLF4J-log4j12:1.6.4”
编译“com.google.android.gms:播放服务地点:8.4.0”
编译“公地网:公网:3.3”
编译“com.jjoe64:graphview:4.0.1”
编译“com.android.support:support-annotations:22.0.1”}
iPictureLibrary的的build.gradle: 应用插件:'com.android.library“安卓{compileSdkVersion 22buildToolsVersion“22.0.1”defaultConfig {
19的minSdkVersion
targetSdkVersion 22
版本code 1
的versionName“1.0”}buildTypes {
minifyEnabled假
proguardFiles getDefaultProguardFile('proguard的-android.txt'),'proguard-rules.pro“
编译文件树(导演:'库',包括:['的* .jar'])
编译“it.sephiroth.android.library.horizontallistview:hlistview:1.2.2”
编译“com.android.support:appcompat-v7:22.2.0”
编译“com.jakewharton:disklrucache:2.0.2”
编制项目(':iCommonLibrary')}
iScannerLibrary的的build.gradle: 应用插件:'com.android.library“安卓{compileSdkVersion 22buildToolsVersion“22.0.1”defaultConfig {
16的minSdkVersion
targetSdkVersion 22
版本code 1
的versionName“1.0”}buildTypes {
minifyEnabled假
proguardFiles getDefaultProguardFile('proguard的-android.txt'),'proguard-rules.pro“
编译文件树(导演:'库',包括:['的* .jar'])
编译“com.google.zxing:核心:3.2.1”
编译“com.google.zxing:Android的核心:3.2.1”
编译文件(“库/ GrabbaSDK / Grabba驱动程序为Android v1.122.jar')
编制项目(':iCommonLibrary')}
mulcobluetooth的文件的build.gradle: 应用插件:'com.android.library“安卓{compileSdkVersion 22buildToolsVersion“22.0.1”defaultConfig {
16的minSdkVersion
targetSdkVersion 22
版本code 1
的versionName“1.0”}buildTypes {
minifyEnabled假
proguardFiles getDefaultProguardFile('proguard的-android.txt'),'proguard-rules.pro“
}}defaultConfig{
multiDexEnabled真}}依赖{
编译文件树(导演:'库',包括:['的* .jar'])
编译“org.apache.commons:公地lang3:3.3.2”
编译“公地IO:公地IO:2.4”}
我希望我提供的任何重要的信息 如果有人不知道什么...请救救我!我不能在这个“诺伊兰”发现什么对不起,长的问题...感谢的人谁取得了它到这里。 编辑: 我的依赖关系更新为: 编译“org.apache.logging.log4j:log4j的核心:2.5”编译“org.slf4j:SLF4J的API:1.7.21”编译“org.slf4j:SLF4J-log4j12:1.7.21” 但一切都没有改变。我仍然有大约500生成错误....我删除mindpipe作为参考的$ C $光盘,它由我自己......什么都没有发生! 编辑: 开罚单:问题206867
https://$c$c.google.com/p/android/issues/detail?id=206867 编辑: 在卸载的Android Studio 2.0及重新安装1.5.1,我得到以下警告:警告:摇篮需要版本2.10。目前的版本为2.8。如果使用的是包装的gradle,尝试用C编辑distributionUrl:\\来源\\ iRecyApps \\ iRecyMulco-1.0.1iOS \\ gradle这个\\包装\\ gradle-wrapper.properties到gradle-2.10-all.zip 于是gradle这个版本由2更新中... 我告诉我自己对目前版本的Gradle和它的2.12 我下载都和尝试这样的:您需要更改文件>设置>构建,执行,部署>生成工具>摇篮>摇篮主路径在Mac OS中,更改Android Studio中的路径> preferences>构建,执行,部署>生成工具>摇篮>摇篮家也可以设置默认使用的Gradle包装和编辑项目\\ gradle这个\\包装\\ gradle-wrapper.properties文件场distributionUrl这样根据
&Gradle 2.10版本是必需的&QUOT。错误
http://tools.android.com/tech-docs/new-build-system/version-compatibility还是什么都没有。解决方案 这是一个警告,这是安全的忽略。添加以下 lintOptions 您的build.gradle: 安卓{
defaultConfig {...}
signingConfigs {...}
compileOptions {...}
buildTypes {...}
//皮棉运行检查,但不会中止编译
lintOptions {
abortOnError假
}} 这里如果你需要更精细的方式来调整lint选项查看顶级答案 &
扫一扫关注官方微信}

我要回帖

更多关于 log4j错误级别 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信