Category : android-ndk

I have shared C++ module, that contains logic for iOS, macOS and Android. When I include this project into Android Studio. It shows all the files in the Project Structure(iOS and macOS as well). How to make Android Studio to shows only files,that are in CMakeLists.txt. Here is my structure: externalNativeBuild { cmake { path ..

Read more

I’m using Firebase on android ndk (including Crashanalytics.h header). At first I can send logs to firabase, but when an error occurs in the application it is not possible to send the log in the function that identifies the error. In JNI_Load firebase::crashlytics::Initialize(); firebase::crashlytics::Log(“Testing “); // Here it is sent normal to firebase struct sigaction ..

Read more

Trying to build google-breakpad using CmakeLists.txt as: Getting error: error: undefined reference to ‘breakpad_getcontext’ clang++: error: linker command failed with exit code 1 (use -v to see invocation) cmake_minimum_required(VERSION 3.10.2) project("breakpad_build") set(breakpad_client ${CMAKE_SOURCE_DIR}/google-breakpad) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -stdlib=libc++ -android_mode=arm") add_library( native-lib SHARED native-lib.cpp ) add_library( breakpad-client STATIC ${breakpad_client}/src/client/linux/crash_generation/crash_generation_client.cc ${breakpad_client}/src/client/linux/dump_writer_common/thread_info.cc ${breakpad_client}/src/client/linux/dump_writer_common/ucontext_reader.cc ${breakpad_client}/src/client/linux/handler/exception_handler.cc ${breakpad_client}/src/client/linux/handler/minidump_descriptor.cc ${breakpad_client}/src/client/linux/log/log.cc ${breakpad_client}/src/client/linux/microdump_writer/microdump_writer.cc ${breakpad_client}/src/client/linux/minidump_writer/linux_dumper.cc ${breakpad_client}/src/client/linux/minidump_writer/linux_ptrace_dumper.cc ..

Read more