I'm following this tutorial.
I made a folder called jniLibs in app/src/main, and it shows when I see the folder in explorer.
However, when I open up Android Studio, I see that the app folder has 4 folders: manifests, java, cpp, res. Where did the cpp folder come from? Why can't I see the jniLibs folder in Android studio?
First of all in general you can follow this procedure to create the jniLibs folder. I did it twice but in one of these attempts I experienced your same problem
I don't know the inner reason generating this issue but I came up with the following workaround to have jniLibs
visible [again] in the Android view [tested on Android Studio 3.1.2]
1) at the beginning doing like in the linked answer got me to the point where in my Android view there was only an empty cpp
folder without any jni
or jniLibs
folder visible
2) at this point I clicked on the cpp folder and I could see the jni folder [red rectangle in the screenshot]
3) click on it and it will automatically open the Project view where I can see the jni
folder
4) right click on it -> Refactor -> Rename... and put jniLibs
5) now go back on your Android view and surprise!
Hope that this can help
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With