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

Fix JNI AttachCurrentThread for newer jni.h versions #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scamille
Copy link

I am currently trying to use your very interesting library with the Android NDK 26, and stumbled upon an issue with a breaking API change in the jni.h header. Namely, the AttachCurrentThread function now accepts JNIEnv** instead of void**.

I have no idea how all these JNI versions work, maybe there also needs to be an if-def as in https://github.com/leeowenowen/jni-examples/blob/070e83a5675274dc8ee86b99720723d12249cf61/invocation-interface/attach.c#L19C1-L19C1 if this is supposed to work with older versions as well.

Anyway, with the change in this PR your library now compiles again.

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

Successfully merging this pull request may close these issues.

1 participant