Questions about the Eclipse Export project

Source: Internet
Author: User

These days to do video components, using the Kingsoft video component, this open source component is compiled under Eclipse, the demo will work properly under ADT.

Kingsoft's library contains so files, if exported to as?

For the first time, follow the old method, generate Gradle directly under ADT, and replace the gradle with the gradle of the new project. did not succeed. The reason: The new project Gradle does not contain many references.

Therefore, it is necessary to use the gradle generated by ADT.

The second attempt, still generates gradle under ADT, replaces the Gradle version of the cost, installs the module in the form of the new ADT plugin in as, and compiles the pass.

But the program ran out of error.

The prompt code is:

Java.lang.UnsatisfiedLinkError cannot load so file

After the query, I learned that the so file was not referenced in Gradle

The workarounds are:

Android {    //  : Android settings .     sourcesets.main {      //  <--Set your folder here!     } }

My Code:

Sourcesets {        Main {            manifest.srcfile ' androidmanifest.xml '            java.srcdirs = [' src ']            resources.srcdirs = [' src '] aidl.srcdirs = [' src '] renderscript.srcdirs = [' src ']            res.srcdirs = [' res ']            assets.srcdirs = [' Assets ']            Jnilibs.srcdir "Libs"        }

  

Questions about the Eclipse Export project

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.