警告:由'android.injected.build.abi'gradle标志设置的ABI [armeabi-v7a,armeabi]包含此项目未定位的'ARMEABI' [英] WARNING: ABIs [armeabi-v7a,armeabi] set by 'android.injected.build.abi' gradle flag contained 'ARMEABI' not targeted by this project

查看:3484
本文介绍了警告:由'android.injected.build.abi'gradle标志设置的ABI [armeabi-v7a,armeabi]包含此项目未定位的'ARMEABI'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将NDK版本升级到Android Studio中的最新版本后,我上次遇到此问题.我还找到了解决此问题的解决方案.如果有人遇到此问题,我希望这是对您最好的问答.请检查我的答案.

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.

推荐答案

我通过阅读

  • 如果使用 Application.mk 配置项目,只需将以下内容添加到 Application.mk 文件中:

    1. If you config your project with Application.mk just add the following to your Application.mk file:

    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'gradle标志设置的ABI [armeabi-v7a,armeabi]包含此项目未定位的'ARMEABI'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆