建立了一个空项目然后生成APK,出现了下面的问题不知道要怎么解决,求高手指教
从这个错误来看像是stl库有问题。
你自己没有修改Application.mk吗?你的NDK版本是多少?
之前好像遇到过,http://code.opencv.org/issues/4398
OpenCV SDK has been built with gcc-4.9 for all platforms, but Android NDK uses gcc-4.8 for 32-bit platforms and gcc-4.9 for 64-bit platforms.
The missing symbol was added to gnustl for gcc-4.9 and your
application tries to link with gnustl from gcc-4.8 which does not
contain this function.
You can add the following line to the Application.mk file to force NDK to use gcc-4.9:
NDK_TOOLCHAIN_VERSION=4.9
The solution is to rebuild OpenCV SDK with default NDK toolchains
(4.8 -> 32 bit, 4.9 -> 64 bit), either manually, either by
modifying android.toolchain.cmake to automatically detect correct toolchain (it takes the latest one by default).
以上翻译过来就是
@#¥%#%¥#@#¥@#¥%%¥¥%#¥%把Application.mk 里 NDK_TOOLCHAIN_VERSION=4.9.