diff --git a/StubLibraries.bp b/StubLibraries.bp index de6d6f69f79f0..c51801869e22a 100644 --- a/StubLibraries.bp +++ b/StubLibraries.bp @@ -193,6 +193,10 @@ droidstubs { api_tag_name: "MODULE_LIB", arg_files: ["core/res/AndroidManifest.xml"], args: metalava_framework_docs_args + module_libs, + + // Do not generate stubs as they are not needed + generate_stubs: false, + check_api: { current: { api_file: "api/module-lib-current.txt", diff --git a/apex/Android.bp b/apex/Android.bp index 0b9802db7bb77..c381c0f100a50 100644 --- a/apex/Android.bp +++ b/apex/Android.bp @@ -122,6 +122,10 @@ stubs_defaults { installable: false, sdk_version: "module_current", filter_packages: framework_packages_to_document, + + // Do not generate stubs as they are not needed + generate_stubs: false, + check_api: { current: { api_file: "api/module-lib-current.txt",