Uso de lambdaj en android
¿Alguien intentó usar la biblioteca lambdaj en el desarrollo de Android?
Funciona bien para mí cuando creo una pequeña aplicación java simple, pero no puedo manejar usarla en una aplicación de Android.
- Mostrar fotos se queda sin memoria
- Programar tareas asíncronas múltiples en android
- ¿Está JDK 1.8 totalmente compatible con Android Studio?
- Vista de calendario para Android GingerBread y antes (API <11)
- Svg archivos de representación en android
ACTUALIZAR:
Estoy agregando lambdaj (lambdaj-2.3.2-with-dependencies.jar, descargado desde http://code.google.com/p/lambdaj ), y luego al crear mi aplicación obtendrá el siguiente error:
Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.hamcrest.generator.qdox.directorywalker.DirectoryScanner$1) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is *not* an inner class. [2011-05-12 15:45:30 - MyAppName] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.hamcrest.generator.qdox.JavaDocBuilder$1) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is *not* an inner class. [2011-05-12 15:45:30 - MyAppName] Dx warning: Ignoring InnerClasses attribute for an anonymous inner class (org.hamcrest.generator.qdox.junit.APITestCase$1) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is *not* an inner class. [2011-05-12 15:45:30 - MyAppName] Dx UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dx.cf.code.SimException: local variable type mismatch: attempt to set or access a value of type java.lang.Object using a local variable of type int. This is symptomatic of .class transformation tools that ignore local variable information. ... skipped stack trace ... ...while working on block 001b ...while working on method yylex:()I ...while processing yylex ()I ...while processing org/hamcrest/generator/qdox/parser/impl/JFlexLexer.class [2011-05-12 15:45:30 - MyAppName] Dx 1 error; aborting [2011-05-12 15:45:30 - MyAppName] Conversion to Dalvik format failed with error 1
- Android JobScheduler se ejecuta varias veces
- ¿Cómo puedo calcular el hash SHA-256 de una cadena en Android?
- No se puede obtener la ubicación en Genymotion VM
- Obtener JSONObject de JSONArray
- Cómo saber si este hilo es un hilo de interfaz de usuario
- La exportación de Eclipse firmada APK falla con SDK 12 y LÍMITE DE COMPATIBILIDAD
- ¿Por qué no funciona gmail oauth en mi aplicación para Android?
- Error: org.gradle.api.internal.changedetection.state
Sé que esta pregunta es de 4 años de edad, pero tuve el mismo problema nowdays y he resuelto por añadir a mi gradle construir configuración depedencies la última versión hamcrest biblioteca disponible.
Aquí mi hilo relacionado
ACTUALIZAR:
Tuve algún problema con lambdaj en mi proyecto, esta biblioteca no es totalmente compatible. Me trasladé a retrolambda , echa un vistazo!
Me parece que hay un problema con la biblioteca hamcrest. Intente seguir el consejo en el error y reconstruya la biblioteca de hamcrest del origen.