The recent move to Android Studio would have meant that new development tools would be much more efficient. It turned out I was wrong. I stepped on a day's pit today.
So files are used in my project. Typically in eclipse we devolve so files in the Libs/armeabi directory. Can be loaded in general.
But I did the same thing when I switched to as. Put the so file under the Libs/armeabi directory. The following information is also configured in the app's Gradle file:
Sourcesets { main { jnilibs.srcdirs = [' Libs '] } }
Run up and start entering the java.lang.UnsatisfiedLinkError of the wrong. TMD has been engaged for a day.
Solve this problem with a variety of searches.
The common solution is the top of the kind of configuration, so let me very depressed. Why can't I?!!
In the end there is no way to create a new project to try, first of all to verify that the above method is feasible.
Of course I tried more than that. You can try to create a new jnilibs in your main directory and then put the Armeabi directory and all so in the directory.
The structure is similar.
This kind of structure. This is the right structure, but I still can't do it. The discovery was due to the use of an open source project.
Realm-java This open source project will lead to.
So when you encounter this strange and strange problem when there is no clue to solve the problem of the first to check if you import the project is not problematic.
16 Small record
Android Studio Java.lang.UnsatisfiedLinkError