Android Studio imports So, jar files.

Source: Internet
Author: User
Environment: Android Studio 1.0.2

If it is a jar file, copy the jar file directly under the project's Libs folder and run: Sync project with Gradle files. The method can be used in 2.

One:

Or:

All of these 2 methods are available.

How do I import so files into a project in Android studio?

You need to create a folder named Jnilibs under the App/src/main directory under the project. Copy the corresponding so file to the directory. The structure after the copy is as follows:

You can see that there is a Lib directory in the generated APK file. As shown in the following:

Android Studio imports So, jar files.

Related Article

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.