Android Studio Reference so file

Source: Internet
Author: User

Reprint must indicate: Transfer from http://blog.csdn.net/zouchengxufei/article/details/46486629
Recently in the use of Android Studio to develop an application, involving Sina login, but Sina Login SDK need to reference so file, with Studio for half a day did not find the right method, do not want to change back to eclipse, so stick to find, finally found a simple method:
Version: gradle2.4
The steps are as follows:
1. Create a folder under the main folder Jnilibs, as
2. Modify the Build.gradle file and add it in android{}

productFlavors {        x86 {            ndk {                "x86"            }        }        mips {            ndk {                "mips"            }        }        armv7 {            ndk {                "armeabi-v7a"            }        }        arm {            ndk {                "armeabi"            }        }        fat    }    sourceSets.main {        ‘src/main/libs‘    }

3. Complete! To run and view the data/data/com. So file under the xxxx/libs.

Android Studio Reference so file

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.