gpt4 book ai didi

android - 错误 :warning: Ignoring InnerClasses attribute for an anonymous inner class

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:07:52 27 4
gpt4 key购买 nike

请帮助我,我已经搜索了很多但找不到任何解决此错误的方法。

build.gragle:

 apply plugin: 'com.android.application'

android {
signingConfigs {
config {
keyAlias 'leadtrak'
keyPassword 'leadtrak1'
storeFile file('/home/sheraz/AndroidStudioProjects/LeadTrak/LeadTrack/docs/LeadTrakKeyStore.jks')
storePassword 'leadtrak1'
}
}
compileSdkVersion 24
buildToolsVersion "24.0.1"
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "leadtrak.activities"
minSdkVersion 9
targetSdkVersion 9
}
buildTypes {
release {
signingConfig signingConfigs.config
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'


}
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}

}


dependencies {

compile 'com.android.support:support-v4:24.2.1'
compile 'com.google.android.gms:play-services:+'
compile files('libs/acra-4.4.0.jar')
compile files('libs/commons-codec.jar')
compile files('libs/ksoap2.jar')
compile files('libs/sqlcipher.jar')
compile files('libs/twilioclient-android.jar')
compile files('libs/zip4j_1.3.1.jar')
}

错误日志:

Error:warning: Ignoring InnerClasses attribute for an anonymous inner class Error:(net.lingala.zip4j.util.ArchiveMaintainer$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:(net.lingala.zip4j.unzip.Unzip$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:(net.lingala.zip4j.unzip.Unzip$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:(net.lingala.zip4j.util.ArchiveMaintainer$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:(net.lingala.zip4j.zip.ZipEngine$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:The number of method references in a .dex file cannot exceed 64K. Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html Error:Execution failed for task ':app:transformClassesWithDexForRelease'.

com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 2

最佳答案

我认为这是你的主要问题

The number of method references in a .dex file cannot exceed 64K.

要解决此问题,请将以下行放入您的应用级 gradle 文件

将这一行放在defaultConfig block 中

multiDexEnabled true

并添加以下依赖

compile 'com.android.support:multidex:1.0.1'

在此之后重建您的项目。希望这可以解决您的错误。

并尝试避免 + 符号,同时在您的项目中添加依赖项,就像您处理播放服务依赖项一样

要删除 OutOfMemory 错误,请在应用级 gradle 文件的 android block 中添加此内容。

dexOptions {
//incremental true
javaMaxHeapSize "4g"
}

关于android - 错误 :warning: Ignoring InnerClasses attribute for an anonymous inner class,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39851808/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com