Guava: Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.XXX

Created on 9 Mar 2017  Â·  7Comments  Â·  Source: google/guava

Hi,

after adding compile 'com.google.guava:guava:21.0' to my Android project Gradle's dependencies, I got this build error:

Information:Gradle tasks [:app:assembleBrandAFastBuildDebug]
Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.BinaryOperator
...
Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.BiPredicate
Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.IntFunction
Error:Default method void addAll(java.lang.Iterable ranges) not supported in Android API level less than 24
Error:Default method boolean enclosesAll(java.lang.Iterable other) not supported in Android API level less than 24
Error:Default method void removeAll(java.lang.Iterable ranges) not supported in Android API level less than 24
Error:Default method boolean test(java.lang.Object input) not supported in Android API level less than 24
Error:Default method void forEachEntry(java.util.function.ObjIntConsumer action) not supported in Android API level less than 24
Error:Default method void forEach(java.util.function.Consumer action) not supported in Android API level less than 24
Error:Default method java.util.Spliterator spliterator() not supported in Android API level less than 24
Error:Static method void com_google_common_collect_Multiset_lambda$forEach$1(java.util.function.Consumer action, com.google.common.collect.Multiset$Entry entry) not supported in Android API level less than 24
Error:Static method void com_google_common_collect_Multiset_lambda$forEachEntry$0(java.util.function.ObjIntConsumer action, com.google.common.collect.Multiset$Entry entry) not supported in Android API level less than 24
Error:Default method void forEach(java.util.function.BiConsumer action) not supported in Android API level less than 24
Error:Static method void com_google_common_collect_Multimap_lambda$forEach$0(java.util.function.BiConsumer action, java.util.Map$Entry entry) not supported in Android API level less than 24
Error:Execution failed for task ':app:transformClassesWithPreJackPackagedLibrariesForBrandAFastBuildDebug'.

com.android.build.api.transform.TransformException: com.android.builder.core.JackToolchain$ToolchainException: Jack compilation exception
Information:BUILD FAILED
Information:Total time: 1 mins 15.703 secs
Information:190 errors
Information:0 warnings
Information:See complete output in console

I'm already using:

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
...
 jackOptions {
            enabled true
        }

compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

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

Gradle's project configuration snippet:

     classpath 'com.android.tools.build:gradle:2.5.0-alpha-preview-01'
     classpath 'me.tatarka:gradle-retrolambda:3.2.5'

In gradle-wrapper.properties I have:

     distributionUrl=https://services.gradle.org/distributions-snapshots/gradle-3.5-20170213202653+0000-all.zip

Could you provide any resolution to this problem?

All 7 comments

I've already found a temporary solution to this problem

After downgrading library version from:

compile 'com.google.guava:guava:21.0'

to

compile 'com.google.guava:guava:20.0'

build successfully completes and app runs fine.

Sorry about that. Please see
https://github.com/google/guava/wiki/Release21#java-8 and stay tuned for
22.0.

On Thu, Mar 9, 2017 at 12:09 PM, Piotr Ekert notifications@github.com
wrote:

Hi,

after adding `compile 'com.google.guava:guava:21.0' to my Android project
Gradle's dependencies, I got this build error:

Information:Gradle tasks [:app:assembleBrandAFastBuildDebug]
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.ToIntFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.IntFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.IntFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.IntFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.IntFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Predicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Predicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Predicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiPredicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.ToIntFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Predicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Predicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Predicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.IntFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.IntFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Predicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.
LongBinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.
LongBinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.
LongUnaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.
LongUnaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.
LongUnaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Predicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.ToLongFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiPredicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.IntFunction
Error:Default method void addAll(java.lang.Iterable ranges) not supported
in Android API level less than 24
Error:Default method boolean enclosesAll(java.lang.Iterable other) not
supported in Android API level less than 24
Error:Default method void removeAll(java.lang.Iterable ranges) not
supported in Android API level less than 24
Error:Default method boolean test(java.lang.Object input) not supported in
Android API level less than 24
Error:Default method void forEachEntry(java.util.function.ObjIntConsumer
action) not supported in Android API level less than 24
Error:Default method void forEach(java.util.function.Consumer action) not
supported in Android API level less than 24
Error:Default method java.util.Spliterator spliterator() not supported in
Android API level less than 24
Error:Static method void com_google_common_collect_
Multiset_lambda$forEach$1(java.util.function.Consumer action,
com.google.common.collect.Multiset$Entry entry) not supported in Android
API level less than 24
Error:Static method void com_google_common_collect_
Multiset_lambda$forEachEntry$0(java.util.function.ObjIntConsumer action,
com.google.common.collect.Multiset$Entry entry) not supported in Android
API level less than 24
Error:Default method void forEach(java.util.function.BiConsumer action)
not supported in Android API level less than 24
Error:Static method void com_google_common_collect_
Multimap_lambda$forEach$0(java.util.function.BiConsumer action,
java.util.Map$Entry entry) not supported in Android API level less than 24
Error:Execution failed for task ':app:transformClassesWithPreJackPac
kagedLibrariesForBrandAFastBuildDebug'.

com.android.build.api.transform.TransformException:
com.android.builder.core.JackToolchain$ToolchainException: Jack
compilation exception
Information:BUILD FAILED
Information:Total time: 1 mins 15.703 secs
Information:190 errors
Information:0 warnings
Information:See complete output in console

I'm already using:

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
...
jackOptions {
enabled true
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

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

Gradle's project configuration snippet:
classpath 'com.android.tools.build:gradle:2.5.0-alpha-preview-01'
classpath 'me.tatarka:gradle-retrolambda:3.2.5'

In gradle-wrapper.properties I have:
distributionUrl=https://services.gradle.org/distributions-snapshots/
gradle-3.5-20170213202653+0000-all.zip

Cold you provide any resolution to this problem?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/guava/issues/2759, or mute the thread
https://github.com/notifications/unsubscribe-auth/AA5Cl1m0kx_kZ9ikU2UtKLNwkKuKJg_aks5rkFyBgaJpZM4MYkbK
.

--
Kevin Bourrillion | Java Librarian | Google, Inc. | [email protected]

Although I see that you're trying to tell it to use API level 25. There may
be something you need to do differently to convince it you really meant
that -- notice its complaints are about things that are available in 24.

Maybe there's a way to make this work, but be aware that we don't promise
compatibility of Guava 21 with any version of Android and haven't tested it
that way. That will happen quite a while from now, as the vast majority of
developers aren't making apps that run only on Nougat.

On Thu, Mar 9, 2017 at 1:31 PM, Kevin Bourrillion kevinb@google.com wrote:

Sorry about that. Please see https://github.com/google/
guava/wiki/Release21#java-8 and stay tuned for 22.0.

On Thu, Mar 9, 2017 at 12:09 PM, Piotr Ekert notifications@github.com
wrote:

Hi,

after adding `compile 'com.google.guava:guava:21.0' to my Android project
Gradle's dependencies, I got this build error:

Information:Gradle tasks [:app:assembleBrandAFastBuildDebug]
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.ToIntFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.IntFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.IntFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.IntFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.IntFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Predicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Predicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Predicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiPredicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.ToIntFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Predicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Predicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Predicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.IntFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BinaryOperator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Supplier
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.IntFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Predicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.LongBinaryO
perator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.LongBinaryO
perator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.LongUnaryOp
erator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.LongUnaryOp
erator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.LongUnaryOp
erator
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Predicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.ToLongFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiFunction
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiConsumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.BiPredicate
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Consumer
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.Function
Error:Lambda coming from jar file need their interfaces on the classpath
to be compiled, unknown interfaces are java.util.function.IntFunction
Error:Default method void addAll(java.lang.Iterable ranges) not supported
in Android API level less than 24
Error:Default method boolean enclosesAll(java.lang.Iterable other) not
supported in Android API level less than 24
Error:Default method void removeAll(java.lang.Iterable ranges) not
supported in Android API level less than 24
Error:Default method boolean test(java.lang.Object input) not supported
in Android API level less than 24
Error:Default method void forEachEntry(java.util.function.ObjIntConsumer
action) not supported in Android API level less than 24
Error:Default method void forEach(java.util.function.Consumer action)
not supported in Android API level less than 24
Error:Default method java.util.Spliterator spliterator() not supported in
Android API level less than 24
Error:Static method void com_google_common_collect_Mult
iset_lambda$forEach$1(java.util.function.Consumer action,
com.google.common.collect.Multiset$Entry entry) not supported in Android
API level less than 24
Error:Static method void com_google_common_collect_Mult
iset_lambda$forEachEntry$0(java.util.function.ObjIntConsumer action,
com.google.common.collect.Multiset$Entry entry) not supported in Android
API level less than 24
Error:Default method void forEach(java.util.function.BiConsumer action)
not supported in Android API level less than 24
Error:Static method void com_google_common_collect_Mult
imap_lambda$forEach$0(java.util.function.BiConsumer action,
java.util.Map$Entry entry) not supported in Android API level less than 24
Error:Execution failed for task ':app:transformClassesWithPreJ
ackPackagedLibrariesForBrandAFastBuildDebug'.

com.android.build.api.transform.TransformException:
com.android.builder.core.JackToolchain$ToolchainException: Jack
compilation exception
Information:BUILD FAILED
Information:Total time: 1 mins 15.703 secs
Information:190 errors
Information:0 warnings
Information:See complete output in console

I'm already using:

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
...
jackOptions {
enabled true
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

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

Gradle's project configuration snippet:
classpath 'com.android.tools.build:gradle:2.5.0-alpha-preview-01'
classpath 'me.tatarka:gradle-retrolambda:3.2.5'

In gradle-wrapper.properties I have:
distributionUrl=https://services.gradle.org/distributions-
snapshots/gradle-3.5-20170213202653+0000-all.zip

Cold you provide any resolution to this problem?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/guava/issues/2759, or mute the thread
https://github.com/notifications/unsubscribe-auth/AA5Cl1m0kx_kZ9ikU2UtKLNwkKuKJg_aks5rkFyBgaJpZM4MYkbK
.

--
Kevin Bourrillion | Java Librarian | Google, Inc. | [email protected]

--
Kevin Bourrillion | Java Librarian | Google, Inc. | [email protected]

@kevinb9n thanks for response. For this time, previous version Guava in version 20 is enough.

If I would find another workaround besides downgrading lib version, I would let you know.

Hope that version 22 would have this problem fixed ;-)

@cpovirk could you provide any solution other than downgrading Guava version as you closed unresolved issue? Just wondering.

That's all we've got for you, sorry :( If it's any consolation, Guava 21 adds almost nothing except the Java 8 features. We should have Guava 22 (with Android-compatible version) our in the coming quarter.

Java 8 support: compile 'com.google.guava:guava:22.0-android'

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jdesmet picture jdesmet  Â·  4Comments

gissuebot picture gissuebot  Â·  5Comments

gissuebot picture gissuebot  Â·  5Comments

thecoop picture thecoop  Â·  4Comments

ernestp picture ernestp  Â·  3Comments