{"action":"created","issue":{"url":"https://api.github.com/repos/google/guava/issues/2759","repository_url":"https://api.github.com/repos/google/guava","labels_url":"https://api.github.com/repos/google/guava/issues/2759/labels{/name}","comments_url":"https://api.github.com/repos/google/guava/issues/2759/comments","events_url":"https://api.github.com/repos/google/guava/issues/2759/events","html_url":"https://github.com/google/guava/issues/2759","id":213150363,"number":2759,"title":"Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.XXX","user":{"login":"piotrek1543","id":11292212,"avatar_url":"https://avatars3.githubusercontent.com/u/11292212?v=3","gravatar_id":"","url":"https://api.github.com/users/piotrek1543","html_url":"https://github.com/piotrek1543","followers_url":"https://api.github.com/users/piotrek1543/followers","following_url":"https://api.github.com/users/piotrek1543/following{/other_user}","gists_url":"https://api.github.com/users/piotrek1543/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrek1543/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrek1543/subscriptions","organizations_url":"https://api.github.com/users/piotrek1543/orgs","repos_url":"https://api.github.com/users/piotrek1543/repos","events_url":"https://api.github.com/users/piotrek1543/events{/privacy}","received_events_url":"https://api.github.com/users/piotrek1543/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-03-09T20:09:28Z","updated_at":"2017-05-24T19:16:27Z","closed_at":"2017-03-28T16:41:22Z","body":"Hi,\r\n\r\nafter adding `compile 'com.google.guava:guava:21.0'` to my Android project Gradle's dependencies, I got this build error:\r\n\r\n> \r\n> Information:Gradle tasks [:app:assembleBrandAFastBuildDebug]\r\n> Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.Function\r\n> Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.Consumer\r\n> Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.BiConsumer\r\n> Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.Supplier\r\n> Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.BiConsumer\r\n> Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.Supplier\r\n> Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.BinaryOperator\r\n> Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.BiConsumer\r\n> Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.BinaryOperator\r\n>...\r\n> Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.Consumer\r\n> Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.Consumer\r\n> Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.BiPredicate\r\n> Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.Consumer\r\n> Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.Function\r\n> Error:Lambda coming from jar file need their interfaces on the classpath to be compiled, unknown interfaces are java.util.function.IntFunction\r\n> Error:Default method void addAll(java.lang.Iterable ranges) not supported in Android API level less than 24\r\n> Error:Default method boolean enclosesAll(java.lang.Iterable other) not supported in Android API level less than 24\r\n> Error:Default method void removeAll(java.lang.Iterable ranges) not supported in Android API level less than 24\r\n> Error:Default method boolean test(java.lang.Object input) not supported in Android API level less than 24\r\n> Error:Default method void forEachEntry(java.util.function.ObjIntConsumer action) not supported in Android API level less than 24\r\n> Error:Default method void forEach(java.util.function.Consumer action) not supported in Android API level less than 24\r\n> Error:Default method java.util.Spliterator spliterator() not supported in Android API level less than 24\r\n> 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\r\n> 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\r\n> Error:Default method void forEach(java.util.function.BiConsumer action) not supported in Android API level less than 24\r\n> 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\r\n> Error:Execution failed for task ':app:transformClassesWithPreJackPackagedLibrariesForBrandAFastBuildDebug'.\r\n> > com.android.build.api.transform.TransformException: com.android.builder.core.JackToolchain$ToolchainException: Jack compilation exception\r\n> Information:BUILD FAILED\r\n> Information:Total time: 1 mins 15.703 secs\r\n> Information:190 errors\r\n> Information:0 warnings\r\n> Information:See complete output in console\r\n\r\nI'm already using:\r\n\r\n```\r\nandroid {\r\n    compileSdkVersion 25\r\n    buildToolsVersion \"25.0.2\"\r\n...\r\n jackOptions {\r\n            enabled true\r\n        }\r\n\r\ncompileOptions {\r\n        sourceCompatibility JavaVersion.VERSION_1_8\r\n        targetCompatibility JavaVersion.VERSION_1_8\r\n    }\r\n\r\n    buildTypes {\r\n        release {\r\n            minifyEnabled false\r\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\r\n        }\r\n    }\r\n```\r\n\r\nGradle's project configuration snippet:\r\n         \r\n         classpath 'com.android.tools.build:gradle:2.5.0-alpha-preview-01'\r\n         classpath 'me.tatarka:gradle-retrolambda:3.2.5'\r\n\r\nIn `gradle-wrapper.properties` I have:\r\n\r\n         distributionUrl=https://services.gradle.org/distributions-snapshots/gradle-3.5-20170213202653+0000-all.zip\r\n\r\nCould you provide any resolution to this problem?"},"comment":{"url":"https://api.github.com/repos/google/guava/issues/comments/303824026","html_url":"https://github.com/google/guava/issues/2759#issuecomment-303824026","issue_url":"https://api.github.com/repos/google/guava/issues/2759","id":303824026,"user":{"login":"DennyWeinberg","id":7354954,"avatar_url":"https://avatars1.githubusercontent.com/u/7354954?v=3","gravatar_id":"","url":"https://api.github.com/users/DennyWeinberg","html_url":"https://github.com/DennyWeinberg","followers_url":"https://api.github.com/users/DennyWeinberg/followers","following_url":"https://api.github.com/users/DennyWeinberg/following{/other_user}","gists_url":"https://api.github.com/users/DennyWeinberg/gists{/gist_id}","starred_url":"https://api.github.com/users/DennyWeinberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DennyWeinberg/subscriptions","organizations_url":"https://api.github.com/users/DennyWeinberg/orgs","repos_url":"https://api.github.com/users/DennyWeinberg/repos","events_url":"https://api.github.com/users/DennyWeinberg/events{/privacy}","received_events_url":"https://api.github.com/users/DennyWeinberg/received_events","type":"User","site_admin":false},"created_at":"2017-05-24T19:16:27Z","updated_at":"2017-05-24T19:16:27Z","body":"Java 8 support: compile 'com.google.guava:guava:22.0-android'"}}
{"actor":{"display_login":"DennyWeinberg"}}