Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WARNING: ABIs [armeabi-v7a,armeabi] set by 'android.injected.build.abi' gradle flag contained 'ARMEABI' not targeted by this project

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.

like image 529
Chivorn Avatar asked May 11 '18 07:05

Chivorn


2 Answers

I found solution by reading on release note here for NDK revision 16.

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

    APP_STL := c++_shared 
  2. If you're using CMake via Gradle, add the following to your build.gradle:

    externalNativeBuild {     cmake {         cppFlags ""         arguments "-DANDROID_STL=c++_shared"     } } 

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.

like image 108
Chivorn Avatar answered Sep 22 '22 07:09

Chivorn


According to Android documentation this is a known issue, and its due to the fact that the gradle plugin still includes unsupported ABIs by default. armbeabi was deprecated in NDKr16 and removed in r17 hence the warning. To fix, list your supported architectures under splits.abi:

... splits {     abi {         ...         reset()         include "x86", "armeabi-v7a", ...     } } 
like image 25
Filipe Oliveira Avatar answered Sep 26 '22 07:09

Filipe Oliveira