I have C++ code for Android in an Android Studio project and want to add a Linux native executable in C++ that shares most of the existing C++ code. So there must be 3 subprojects (I think): Android, Linux and a library with the shared code.
Are there any examples how to do it?