[ 
https://issues.apache.org/jira/browse/KAFKA-7025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17390977#comment-17390977
 ] 

Nikolai Lubiagov commented on KAFKA-7025:
-----------------------------------------

Hm, compiler does not specify file where it used. But if i try to find by code, 
i can found it:

[https://github.com/apache/kafka/blob/99b9b3e84f4e98c3f07714e1de6a139a004cbc5b/clients/src/main/java/org/apache/kafka/common/utils/ByteBufferUnmapper.java#L81]

So i think if remove this call, it will able compile, with old android versions.

> Android client support
> ----------------------
>
>                 Key: KAFKA-7025
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7025
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients
>    Affects Versions: 1.0.1
>            Reporter: Martin Vysny
>            Priority: Major
>         Attachments: image-2020-07-21-06-42-03-140.png
>
>
> Adding kafka-clients:1.0.0 (also 1.0.1 and 1.1.0) to an Android project would 
> make  the compilation fail: com.android.tools.r8.ApiLevelException: 
> MethodHandle.invoke and MethodHandle.invokeExact are only supported starting 
> with Android O (--min-api 26)
>  
> Would it be possible to make the kafka-clients backward compatible with 
> reasonable Android API (say, 4.4.x) please?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to