Android Studio Gradle adds support for. so files

Source: Internet
Author: User

Recently in the development of the Android Wear Watch project, the official demo is all Gradle projects. Of course I also use eclipse to configure a workable environment.

The question is, Eclipse,android Studio developed Android Wear which technology is stronger?

The current development experience is more studio-strong.

Encounter a problem in development Android studio does not break the. So file into the APK package when using the Gradle build wear app, because Gradle does not know. So.

Google a lot, there are many hack way, but the simplest one: Add the Jnilibs directory under src/main/(Note: Gradle project file structure and eclipse some differences), the original/libs/ The Armeabi folder is copied with all the sub-files. Once again run,adb the shell into the data/data/com.xxx./libs, you can see the. so file into the APK, Unsatisfiedlinkerror is gone.

Android Studio Gradle adds support for. so files

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.