android studio 把c++放到cpp文件夹不显示问题

file(GLOB native_srcs "src/main/cpp/*.cpp" "src/main/cpp/dalvik/*.cpp" "src/main/cpp/art/*.cpp" "src/main/cpp/art/*.S")
add_library( # Sets the name of the library.
  native-lib
  # Sets the library as a shared library.
  SHARED
  # Provides a relative path to your source file(s).
  ${native_srcs}
  )
更改CMakeLists.txt的配置,重新加载一次就OK。





猜你喜欢

转载自blog.csdn.net/qq_34884729/article/details/80915202