在使用最新的AS编译ndk代码时,抛出以下错误:
CMake Error at C:/Users/Administrator/AppData/Local/Android/Sdk/ndk-bundle/build/cmake/android.toolchain.cmake:250 (message):
stlport_static is no longer supported. Please switch to either c++_shared
or c++_static. See
https://developer.android.com/ndk/guides/cpp-support.html for more
information.
Call Stack (most recent call first):
C:/Users/Administrator/AppData/Local/Android/Sdk/cmake/3.6.4111459/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:98 (include)
CMakeLists.txt
问题原因 ,Ad使用了ndk 20版本,将其改为原来的14版本
//local.properties文件中添加
ndk.dir=C\:\\Users\\Administrator\\AppData\\Local\\Android\\Sdk\\ndk\\android-ndk-r14b
老版本ndk下载地址:
https://developer.android.google.cn/ndk/downloads/older_releases
网友评论