Category : java-native-interface

A small note before i start; im new at posting questions, so any help is nice.. Ok, so the error im getting is: Exception in thread "main" java.lang.UnsatisfiedLinkError: F:java-developmentJava Native TestlibJNI.dll: %1 is not a valid Win32 application at java.base/jdk.internal.loader.NativeLibraries.load(Native Method) at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:383) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:227) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:169) at java.base/jdk.internal.loader.NativeLibraries.findFromPaths(NativeLibraries.java:310) at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:282) at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2440) at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:809) ..

Read more

Hello I am using c++ in my Android project and I am fairly new to it. I have this class called SuperpoweredAndroidAudioIO which has the following constructor parameters. SuperpoweredAndroidAudioIO(int samplerate, int buffersize, bool enableInput, bool enableOutput, audioProcessingCallback callback, void *clientdata, int inputStreamType = -1, int outputStreamType = -1); Here audioProcessingCallback is a typedef which is ..

Read more

I have a static library (foo.a) that contains a lot of symbols, e.g.: 0000000000000000 l d .text.finish_doctype_system_id 00000000 .text.finish_doctype_system_id 0000000000000000 gw F .text._ZN16FlutterContainer14create_elementEPKcRKNSt6__ndk13mapINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEES9_NS2_4lessIS9_EENS7_INS2_4pairIKS9_S9_EEEEEERKNS2_10shared_ptrIN8litehtml8documentEEE 0000003c .hidden _ZN16FlutterContainer14create_elementEPKcRKNSt6__ndk13mapINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEES9_NS2_4lessIS9_EENS7_INS2_4pairIKS9_S9_EEEEEERKNS2_10shared_ptrIN8litehtml8documentEEE … 0000000000000000 g F .text.document_width 0000002c document_width When I use -whole-archive to create an .so from that .a, ALL symbols appear in the .so. However, I only want the ..

Read more

I need to develop a flutter application which displays list of bluetooth devices. But this is to be achieved through C++. For this I wrote C++ code like this. extern "C" char * GetBluetoothDevices() { JavaVM *jvm; JNIEnv *env; JavaVMInitArgs vm_args; // Initialization arguments JavaVMOption* options = new JavaVMOption[1]; // JVM invocation options options[0].optionString = ..

Read more