Aliaksei Levin
Aliaksei Levin
We recommend to use CMake for Android builds, which automatically will manage all dependencies.
You need to link against tdclient, tdutils and other libraries.
@isopen you need to run native build first with ``` cmake --build . --target prepare_cross_compiling ``` to generate some source files.
Something wrong with yours TDLib source code. There is no c == '16' on this line: https://github.com/tdlib/td/blob/6c706f45e7a73c936b9f2f267785092c8a73348f/tdutils/td/utils/JsonBuilder.cpp#L433 as there is no line ``` case '16': ``` For Android it is...
1. To use native Java bindings you need to use Td::TdStatic library compiled with TD_ENABLE_JNI and the wrapper exactly the same as in our Java example. You will need to...
"error: /usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so: incompatible target" is because you have removed check `if (TD_ENABLE_JNI AND NOT ANDROID) # jni is available by default on Android` and CMake has found wrong JNI libraries,...
Correct JNI headers can be found inside Android NDK. I'm not sure that you need to link with JRE libraries on Android at all when JNI is used.
We built TDLib for Android inside Android Studio project. It is hard to drop the whole project, but we will be publish it in the future.
[build.gradle.txt](https://github.com/tdlib/td/files/1818820/build.gradle.txt)
Big-endian architectures aren't supported now and are unlikely to be supported in the near future.