Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jni is incompatible with kotlin gradle plugin 1.6.20 or higher #1135

Closed
btrautmann opened this issue May 9, 2024 · 6 comments · Fixed by #1481
Closed

jni is incompatible with kotlin gradle plugin 1.6.20 or higher #1135

btrautmann opened this issue May 9, 2024 · 6 comments · Fixed by #1481

Comments

@btrautmann
Copy link

btrautmann commented May 9, 2024

We're trying to use a package in our codebase that has a transitive dependency on jni via cronet_http. We are currently using version 7.4.2 of the Android Gradle Plugin, which is incompatible with the Kotlin version declared by jni (1.6.10).

We're wondering what we can do as a path forward. Would it make sense to open a PR bumping the AGP/Kotlin version used by jni, or would that have ripple effects? How is the upgrade process typically done?

Links:

Package we'd like to use: https://github.com/cfug/dio/tree/main/plugins/native_dio_adapter
jni declared Kotlin version: https://github.com/dart-lang/native/blob/main/pkgs/jni/android/build.gradle#L7
jni declared AGP version: https://github.com/dart-lang/native/blob/main/pkgs/jni/android/build.gradle#L15

@btrautmann
Copy link
Author

Closing this as it's actually an incompatibility with the kotlin-android-extensions plugin causing this issue which has long been deprecated, so we'll need to migrate away from that to adopt the package. Sorry for any noise!

@tomfong
Copy link

tomfong commented Aug 29, 2024

I'm facing this issue as well. Any update?

@HosseinYousefi
Copy link
Member

I'm facing this issue as well. Any update?

The original poster closed this issue so no updates.

Why are you facing an issue? Can you explain?

@tomfong
Copy link

tomfong commented Aug 29, 2024

I'm facing this issue as well. Any update?

The original poster closed this issue so no updates.

Why are you facing an issue? Can you explain?

Please refer to this issue:
dart-lang/http#1300

@HosseinYousefi
Copy link
Member

I see. Will update the dependency.

@HosseinYousefi
Copy link
Member

It seems that I can do one better, removing the Kotlin dependency works as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants