警告:由“android.injected.build.abi"设置的 ABI [armeabi-v7a,armeabi] gradle 标志包含“ARMEABI",该项目未针对 [英] WARNING: ABIs [armeabi-v7a,armeabi] set by 'android.injected.build.abi' gradle flag contained 'ARMEABI' not targeted by this project
问题描述
我上次在 Android Studio 中将 NDK 版本升级到最新版本后遇到了这个问题.我还找到了解决此问题的解决方案.如果有人有这个问题,我希望这是对你最好的问题和答案.请检查我的答案.
I had this issue last time after upgrade NDK version to latest version in Android Studio. I also found solution to fix this. If anyone has this issue , I hope it is the best question and answer for you. Please check my answer.
推荐答案
我通过阅读 在此处发布说明,用于 NDK 修订版 16.
I found solution by reading on release note here for NDK revision 16.
如果您使用
Application.mk
配置您的项目,只需将以下内容添加到您的Application.mk
文件:
APP_STL := c++_shared
如果您通过 Gradle 使用 CMake
,请将以下内容添加到您的 build.gradle:
If you're using CMake
via Gradle, add the following to your build.gradle:
externalNativeBuild {
cmake {
cppFlags ""
arguments "-DANDROID_STL=c++_shared"
}
}
要及时了解新版本和注意事项,请关注此NDK 修订历史记录 应用新的更改.
To keep up to date with new release and note, please follow this NDK Revision History to apply with new changed.
希望它能解决你的问题.
I hope it can fix your issue.
这篇关于警告:由“android.injected.build.abi"设置的 ABI [armeabi-v7a,armeabi] gradle 标志包含“ARMEABI",该项目未针对的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!