2

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?

Onik
  • 19,396
  • 14
  • 68
  • 91
Tobias Wollgam
  • 761
  • 2
  • 8
  • 25
  • No sorry, this is not helpful, cause an Android executable is build, but I want Android and Linux (Desktop) executable. The Android code exists, now I want to add a Linux subproject. (BTW I do not know if _subproject_ is the right term) – Tobias Wollgam Apr 21 '17 at 21:33
  • I don't know what in my text leads you to this assumption? I wrote 3 subprojects (or modules), one for Android, one for desktop Linux and one for the code both projects share. Now I have for Linux a module. Gradle builds it (command line), but Android Studio ignores it. No solution found yet! – Tobias Wollgam Apr 22 '17 at 14:31
  • [Building executables for Android shell](https://stackoverflow.com/a/35275134/3290339) – Onik Sep 16 '17 at 00:53

0 Answers0