Android之动态库生成并打包到APK中(Windows下)

时间:2017-04-08 04:15:42
【文件属性】:
文件名称:Android之动态库生成并打包到APK中(Windows下)
文件大小:429KB
文件格式:ZIP
更新时间:2017-04-08 04:15:42
交叉编译 动态库打包 so打包 Android内核是Linux的,而linux的动态库是*.so文件,那么在windows要如何生成并打包到APK中呢?实现这一过程,大致需要以下几个步骤: 1、搭建编译环境 2、使用JNI生成相应的头文件 3、编写动态库的实现 4、生成动态库 5、编译调用动态库的代码 6、动态库打包到APK中 7、测试 具体可以参看该文http://blog.csdn.net/xxdddail/article/details/21515819
【文件预览】:
DynamicLibTest
----.project(850B)
----bin()
--------AndroidManifest.xml(880B)
--------jarlist.cache(119B)
--------DynamicLibTest()
--------dexedLibs()
--------DynamicLibTest.apk(44KB)
--------res()
--------resources.ap_(39KB)
--------classes()
--------classes.dex(4KB)
----.settings()
--------org.eclipse.jdt.core.prefs(177B)
----ic_launcher-web.png(50KB)
----libcode()
--------compile.bat(132B)
--------com_example_dlt_NativeJniAdder.o(939B)
--------genHeader.bat(54B)
--------com_example_dlt_NativeJniAdder.h(519B)
--------a.out(1KB)
--------com_example_dlt_NativeJniAdder.c(217B)
--------genSo.bat(213B)
----AndroidManifest.xml(880B)
----proguard-project.txt(781B)
----libs()
--------armeabi()
----src()
--------com()
----project.properties(563B)
----res()
--------values()
--------layout()
--------drawable-ldpi()
--------drawable-hdpi()
--------drawable-mdpi()
--------drawable-xhdpi()
--------drawable-xxhdpi()
----.classpath(364B)
----gen()
--------com()
----assets()

网友评论

  • 写的还不错