I am looking to add JNI libraries into my XE5, but I had no luck.
When I call out to the units in the uses (eg. Androidapi.JNI.GraphicsContentViewText, Androidapi.JNI.Net...) I get a message that XE5 can't resolve unit name.
I have located the JNI files I need (C:\Program Files (x86)\Embarcadero\RAD Studio\12.0\source\rtl\android), but I don't know how to link to them in XE5.
This is my first time in XE5 and I'm doing this for a school project, so please, be gentle.
Thanks in advance!
You need to add ${BDSDIR}\Lib\${PLATFORM}\${Target} to your library path, which in the case of an Android platform debug target will end up adding C:\Program Files (x86)\Embarcadero\RAD Studio\12.0\lib\android\debug to the library path during a build; in the case of an Android release build it will automatically change to C:\Program Files (x86)\Embarcadero\RAD Studio\12.0\lib\android\release.