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