tools tengo studio saber que muestra manager errores error diseño configurar comunes como actualizar android android-studio build dependencies build.gradle

tengo - error sdk android studio



Error en la creación de gradle después de actualizar Android Studio con log4j (6)

Agregue esta línea a proguard-rules.pro

-keepattributes EnclosingMethod

Este error puede ocurrir casi en todas las clases que tienen InnerClasses, creo. (como support.v4 etc) para mí.

Lo probé en el estudio 2.2 de Android
(No probado log4j. Probado support.v4 etc.)

build.gradle

compileSdkVersion 24 buildToolsVersion "24.0.2" ... minifyEnabled true proguardFiles getDefaultProguardFile(''proguard-android.txt''), ''proguard-rules.pro'' ... dependencies { ... compile ''com.android.support:support-v4:24.2.1'' }

getDefaultProguardFile(''proguard-android-optimize.txt'') también funciona.

Obtengo estos errores después de actualizar Android Studio y el 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

SDK instalado:

Todo incluido rev. 25.1.2

Android Studio:

Android Studio 2.0 Build # AI-143.2739321, construido el 5 de abril de 2016 JRE: 1.7.0_80-b15 amd64

El archivo build.gradle del proyecto:

apply plugin: ''com.android.application'' android { signingConfigs { mulco { 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" } } else { throw new GradleException("Could not read version.properties!") } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile(''proguard-android.txt''), ''proguard-rules.pro'' signingConfig signingConfigs.mulco } debug { 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'' }

y de la biblioteca iCommonLibrary:

apply plugin: ''com.android.library'' android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { multiDexEnabled true minSdkVersion 16 targetSdkVersion 22 versionCode 1 versionName "1.0" } buildTypes { release { 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 de iPictureLibrary:

apply plugin: ''com.android.library'' android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { minSdkVersion 19 targetSdkVersion 22 versionCode 1 versionName "1.0" } buildTypes { release { 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 de iScannerLibrary:

apply plugin: ''com.android.library'' android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { minSdkVersion 16 targetSdkVersion 22 versionCode 1 versionName "1.0" } buildTypes { release { 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'') }

archivo build.gradle de mulcobluetooth:

apply plugin: ''com.android.library'' android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { minSdkVersion 16 targetSdkVersion 22 versionCode 1 versionName "1.0" } buildTypes { release { 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'' }

Espero haber proporcionado alguna información importante

Si alguien sabe algo ... por favor, ¡ayúdame! No puedo encontrar nada en este "NEULAND"

Perdón por la larga pregunta ... Gracias a todos los que han hecho las paces aquí.

EDITAR:

Actualicé las dependencias a:

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''

Pero nada ha cambiado Todavía tengo unos 500 errores de compilación ... Eliminé MindPipe como referencia y lo codifiqué solo ... ¡No pasó nada!

EDITAR:

Abierto un ticket: Número 206867

https://code.google.com/p/android/issues/detail?id=206867

EDITAR:

Después de desinstalar Android Studio 2.0 e instalar 1.5.1 nuevamente, recibo la siguiente advertencia:

Advertencia: se requiere la versión 2.10 de Gradle. La versión actual es 2.8. Si usa el envoltorio gradle, intente editar el distributionUrl en C: / Sources / iRecyApps / iRecyMulco-1.0.1iOS / gradle / wrapper / gradle-wrapper.properties a gradle-2.10-all.zip

Entonces la versión gradle se actualizó por 2 ...

Me informé acerca de la versión gradle actual y es 2.12

Descargué ambos y probé esto:

Necesita cambiar Archivo> Configuraciones> Compilaciones, Ejecución, Despliegue> Herramientas de compilación> Gradle> Ruta de inicio de Gradle

En Mac OS, cambie la ruta en Android Studio> Preferencias> Compilaciones, Ejecución, Despliegue> Herramientas de compilación> Gradle> Gradle home

O configure Use el envoltorio gradle predeterminado y edite los archivos Project / gradle / wrapper / gradle-wrapper.properties field distributionUrl como este

de acuerdo a:

"Se requiere la versión Gradle 2.10". Error

http://tools.android.com/tech-docs/new-build-system/version-compatibility

Aún nada


En mi caso, me encontré con este error cuando habilité Instant Run , pero después de desactivar Instant Run , el error desapareció.


Esto funcionó para mí, iniciar un nuevo proyecto de estudio de Android copiar y pegar gradle-wrapper.properties y build.gradle (Proyecto: "Nombre del proyecto") en su proyecto anterior que tuvo el error - para actualizar su gradle

También agregue esto en su proguard-rules.pro

-keepattributes EnclosingMethod

Actualice su build.gradle (Módulo: aplicación) de la siguiente manera

buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile(''proguard-android.txt''), ''proguard-rules.pro'' } } dexOptions { preDexLibraries = false }


Se resolvió degradando todas las dependencias de com.android.support a 23.1.1 en la configuración de Gradle.


Yo también estaba enfrentando el mismo error. Me estaba volviendo loco porque el recuento de errores fue> 1K. Y estaba obteniendo estos errores en la versión de lanzamiento con proguard habilitado.

Después de investigar un poco, descubrí que al agregar -keepattributes EnclosingMethod en su archivo proguard-rules.pro , todos estos errores desaparecerán.

Fuente : Thread and Issue # 294 en GitHub.


Escriba este fragmento de código en proguard-rules.pro en su proyecto.

-keepattributes EnclosingMethod

Al escribir el fragmento anterior en el archivo proguard-rules.pro, las reglas de proguard en realidad cambian la forma en que las clases se ofuscan.