tdjson jni method invoke error
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.drinkless.tdlib.JsonClient.setLogMessageHandler(ILorg/drinkless/tdlib/JsonClient$LogMessageHandler;)V
Check that you use only JsonClient.java and link with libtdjni.so built with tdjson interface using the option -DTD_JSON_JAVA=ON.
Had same issue, resolved by this command at 2nd phase of compilation for java:
cd example/java Remove-Item build -Force -Recurse -ErrorAction SilentlyContinue mkdir build cd build cmake -A x64 -DCMAKE_INSTALL_PREFIX:PATH=../../../tdlib -DTD_JSON_JAVA=ON -DCMAKE_TOOLCHAIN_FILE:FILEPATH=../../../vcpkg/scripts/buildsystems/vcpkg.cmake -DTd_DIR:PATH=$(Resolve-Path ../td/lib/cmake/Td) ..
@levlam I think need to add information about this arg to readme because no information about it