Android NDK: APP_STL stlport_static is no longer supported

今天打开之前2017年的VirtualApp,遇到如下问题

问题1:

Error while executing process D:\czg\sdk\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\czg\czgAs\VirtualAppDouble\lib\src\main\jni\Android.mk NDK_APPLICATION_MK=D:\czg\czgAs\VirtualAppDouble\lib\src\main\jni\Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=1 APP_PLATFORM=android-16 NDK_OUT=D:/czg/czgAs/VirtualAppDouble/lib/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=D:\czg\czgAs\VirtualAppDouble\lib\build\intermediates\ndkBuild\debug\lib APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}

process_begin: CreateProcess(NULL, "", ...) failed

问题2

Android NDK: APP_STL stlport_static is no longer supported. Please switch to either c++_static or c++_shared. See https://developer.android.com/ndk/guides/cpp-support.html for more information. . Stop.
Open File

此问题出现的原因有可能是Android studio 中 ndk版本过高导致的,例如:


Android NDK: APP_STL stlport_static is no longer supported_第1张图片
ndk版本过高

需要去https://developer.android.google.cn/ndk/下载更低的版本。

Android NDK: APP_STL stlport_static is no longer supported_第2张图片
2017年的ndk

然后解压下载NDK,配置项目的ndk

Android NDK: APP_STL stlport_static is no longer supported_第3张图片
As 配置 ndk 路径

改为:


Android NDK: APP_STL stlport_static is no longer supported_第4张图片
修改ndk版本

OK!,再次build一下

参考:

Android NDK APP_STL gnustl_shared is no longer supported

你可能感兴趣的:(Android NDK: APP_STL stlport_static is no longer supported)