Skip to content

Work with latest JNI crate? #512

@rnikander

Description

@rnikander

I get compiler errors trying to uses this crate. I guess because my other code uses the latest JNI.

error[E0308]: arguments to this function are incorrect
   --> ui/src/os_spec/android/mod.rs:450:9
    |
450 |         ndk::native_window::NativeWindow::from_surface(env.get_raw(), *surface)
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
note: expected `jni_sys::JNINativeInterface_`, found `JNINativeInterface_`
   --> ui/src/os_spec/android/mod.rs:450:56
    |
450 |         ndk::native_window::NativeWindow::from_surface(env.get_raw(), *surface)
    |                                                        ^^^^^^^^^^^^^
note: there are multiple different versions of crate `jni_sys` in the dependency graph

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions