Android Studio Java.lang.UnsatisfiedLinkError

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.