zhuzhu
1.导入第三方Jar包
java_import {
name:"custom_jar",
jars:["libs/xxxxx.jar"],
sdk_version: "current",
}
android_app {
......
static_libs: [
"custom_jar",
],
.......
}
2.静态导入系统Jar包
android_app {
......
static_libs: [
"system_jar",
],
.......
}
3.动态导入系统Jar包(系统jar编译时最好使用静态导入库,否则编译时会出现jar无法正常依赖动态库的情况)
android_app {
......
libs: [
"system_jar",
],
.......
}
在build/target/product/base_system.mk中新增
PRODUCT_BOOT_JARS += system_jar