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/03/24 18:32: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=17308102#comment-17308102 ]
Nikolai Lubiagov edited comment on KAFKA-7025 at 3/24/21, 6:31 PM:
-------------------------------------------------------------------
For me interested other question, how it may working without, on any Android version? I get, this errors, because this is not part of Android Java.
{code:java}
java.lang.ClassNotFoundException: Didn't find class "javax.management.DynamicMBean"
Caused by: java.lang.ClassNotFoundException: Didn't find class "java.lang.management.ManagementFactory"
{code}
i append in Gradle build script this line import client library:
{code:java}
implementation 'org.apache.kafka:kafka-clients:2.7.0'{code}
was (Author: lubagov):
For me interested other question, how it may working without, on any Android version? I get, this errors, because this is not part of Android Java.
```java.lang.ClassNotFoundException: Didn't find class "javax.management.DynamicMBean"
Caused by: java.lang.ClassNotFoundException: Didn't find class "java.lang.management.ManagementFactory"```
i append in Gradle build script this line import client library:
`implementation {color:#067d17}'org.apache.kafka:kafka-clients:2.7.0'`{color}
> 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
> Fix For: 3.0.0
>
> 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)