Error loading JNI.h and jni_md.h
I am working on a plugin that uses a 3rd party JAR to add functionality to android builds. I am using the AndroidJNI.h as a wrapper for my java class that interacts with the JAR file. Whenever I try to build my game the build fails at first because it couldn't find the JNI.h file that the AndroidJNI.h file needed. To fix this I added the path to it in the include directories for the game. Now it can't find the jni_md.h file which is one sub folder down from the JNI.h file. I added in the directory to this file as well but that didn't help. Has anyone else ran across this problem or have an idea on what I can do to fix it so that I can build my plugin? Any help would be greatly appreciated.
Currently, UE only adds JNI directories to header search directory when building for Android. Any code that touches JNI cannot be build for non-Android target.
You should either move all of this code to separate files, that aren't compiled in development editor builds or #ifdef all relevant includes and code under
answered Mar 24 '16 at 03:44 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here