Use Visual Studio to add and call dynamic library SO projects

illustrate:

I recently came into contact with Visual Studio to develop android libraries, and found that creating and using C++ so files and a files is much simpler than android studio. Although as is still dominant in the development of android, vs still has a lot to do in this direction.

I tried to develop an android so example here, and found it quite convenient. There is almost no need to do anything about the configuration inside, just quote directly, no makefile or android.mk is needed.

The function of the example is very simple, get the platform ABI. The previous document said that there is no way to debug c++ programs, but it was later found that it is possible to use a real machine.

step:

  • add-item (base app (android, gradle))

 

Guess you like

Origin blog.csdn.net/lgs790709/article/details/125226375