android app 启动报错:java.lang.UnsatisfiedLinkError: dlopen failed: library “libomp.so“ not found: neede

解决方法:

在cmakelist.txt 中添加

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}  -frtti -fopenmp -static-openmp")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -frtti -fopenmp -static-openmp")

你可能感兴趣的:(android,studio,android,android-studio)