You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Nikolai Lubiagov (Jira)" <ji...@apache.org> on 2021/07/31 14:53:00 UTC

[jira] [Comment Edited] (KAFKA-7025) Android client support

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

Nikolai Lubiagov edited comment on KAFKA-7025 at 7/31/21, 2:52 PM:
-------------------------------------------------------------------

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.

The main thing is not just not to use it, but to remove it from the code, because all files, regardless of use, are converted to DEX ... and when the compiler encounters this method, a problem occurs.

Will try last version....


was (Author: lubagov):
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)