Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

Expected NDK STL shared object file libgnustl_shared.so #64

Open
Suhail opened this issue Nov 3, 2018 · 10 comments
Open

Expected NDK STL shared object file libgnustl_shared.so #64

Suhail opened this issue Nov 3, 2018 · 10 comments

Comments

@Suhail
Copy link

Suhail commented Nov 3, 2018

I googled around & wasn't able to find a solution for this error when I build this in Android Studio (v3.1.4):

Expected NDK STL shared object file at /Users/username/Library/Android/sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_shared.so

@Suhail Suhail closed this as completed Nov 3, 2018
@Suhail Suhail reopened this Nov 21, 2018
@antoniosap
Copy link

same here:
Expected NDK STL shared object file at /home/antonio/Android/Sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a/libgnustl_shared.so

@pedrobairao
Copy link

Have you manage to solve the issue?

@Annbless
Copy link

After I downgrade the NDK version, the probelm solved for me

@vlomonaco
Copy link

vlomonaco commented Dec 18, 2018

If you installed NDK from Android Studio and you encountered the aforementioned issue, it means you have an higher version of it currently not compatible with the project. The simplest thing to do is to downgrade manually to NDK r17c. In order to do that you have to remove the ndk-bundle from your Android SDK home directory, download the bundle manually and substitute it. Here are the commands in Linux:

mv ~/Android/Sdk/ndk-bundle ~/Android/Sdk/ndk-bundle-backup
wget https://dl.google.com/android/repository/android-ndk-r17c-linux-x86_64.zip
unzip android-ndk-r17c-linux-x86_64.zip
mv android-ndk-r17c ~/Android/Sdk/ndk-bundle

@toby5box
Copy link

toby5box commented Dec 27, 2018

Is there a better solution to this?

In particular, if one has installed NDK via the Android Studio gui, it's completely non obvious how to downgrade. Also one might not be using Linux.

@joyce0101
Copy link

i have installed NDK from the Android Studio ,i don't konw how to downgrade.

@vlomonaco
Copy link

I updated my previous comment with a bit more info, hope it helps!

@toby5box
Copy link

Is this project ever going to be made compatible with current tooling? e.g. current NDK?

@morrisfranken
Copy link

Without (re)moving your existing NDK for other projects, you can download and extract NDK 17c (https://dl.google.com/android/repository/android-ndk-r17c-linux-x86_64.zip), and place it anywhere on your computer. Open the local.properties file in your project folder, and change the ndk.dir to the location that you just extracted the NDK17.c to.

@tsauri
Copy link

tsauri commented May 6, 2019

https://github.com/caffe2/AICamera
9 months since last commit

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants