From b732c842ae305e55bf27ecc05f83e85b49023243 Mon Sep 17 00:00:00 2001 From: Yu Liu Date: Thu, 16 Jan 2025 00:15:54 +0000 Subject: Fix a bug where disbled modules generating error messages. Bug: 390254600 Test: Local and adbt Change-Id: If5f35e47dde8fa159e802bad9104052d4ef1bb2e --- java/app.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'java') diff --git a/java/app.go b/java/app.go index f4c658cac..34a172e8a 100644 --- a/java/app.go +++ b/java/app.go @@ -1171,6 +1171,9 @@ func collectJniDeps(ctx android.ModuleContext, seenModulePaths := make(map[string]bool) ctx.WalkDepsProxy(func(module, parent android.ModuleProxy) bool { + if !android.OtherModuleProviderOrDefault(ctx, module, android.CommonModuleInfoKey).Enabled { + return false + } otherName := ctx.OtherModuleName(module) tag := ctx.OtherModuleDependencyTag(module) -- cgit v1.2.3-59-g8ed1b