Yeah, that's easy problem to solve. You just get your C++ compiler to output directly to JVM or .net bytecode(s) and you can use all the standard Android APIs then.
Posts by lambdacalculus
2 publicly visible posts • joined 19 Aug 2019
Dropbox would rather write code twice than try to make C++ work on both iOS and Android
C++ is a beast of a language and I love it, and there's nothing like it for cross-platform development. The issue that the dropbox guys are alluding to here is that C++ standard library feature support has simply not kept pace with other languages. This is by far the biggest problem with C++, its can be a real pain to do things that are straightforward in other languages. Simply because the libraries in .net, Java, Kotlin etc are far richer.
The C++ standards body at last are taking steps to address this - and not before time. C++17 introduced the standard filesystem library, and C++22 will support networking within the standard library. The C++ standards community needs to increase focus on standard library feature richness as a priority, rather than geeky and esoteric language feature masturbation or C++ will die.