I’m developing a custom system app for AOSP using Kotlin and Jetpack compose.
I have added dependencies to ‘androidx.*’ and have compose and material 3 working.
android_app {
name: "MySystemApp",
srcs: ["java/**/*.kt"],
resource_dirs: ["res"],
manifest: "AndroidManifest.xml",
static_libs: [
"androidx.core_core"
]
}
Now I want to add a dependency upon external libraries, such as okhttp.
I understand that I somehow need to bundle okhttp (or any other dependency not already included in AOSP) with the AOSP build pipeline, and include it in the static_libs
section of Android.bp.
How do I add this external dependency to the build?