VS2015 - Referencing .so files in Android project <p>I have an Android project composed of a Java layer for the UI, and a C++ layer for the core of the application that contains most of the code.</p> <p>These two layers are two separate Visual Studio 2015 projects/solutions, the "UI" project being a "Basic Application (Android, Gradle)" project, and the "Core" project being a "Dynamic Shared Library (Android)" generating a <code>.so</code> which is loaded by the Java on startup.</p> <p>I would like my "UI" project to reference the "Core" project without making the C++ code accessible when openning the "UI" project.</p> <p>What I have thought so far :</p> <ul> <li><p>Adding a reference to the "Core" project in the "UI" project, which seems to be the clean way to do this, but which also makes the C++ code accessible, which I don't want to be possible.</p></li> <li><p>Not creating a reference to the "Core" project in the "UI" project but simply "referencing" the <code>.so</code> generated by the "Core" project into the "UI" project. However I don't know how to do that. And because there will not be an actual reference to the "Core" project, compiling the "UI" project will not automatically recompile the "Core" project if a modification was made to it, forcing me to do it manually.</p></li> </ul> <p>Is there a clean way to do what I want to do ? Thank you.</p>