Previously a java_sdk_library_import module did not replace the corresponding java_sdk_library module, even when it was marked as prefer=true. That is because the java_sdk_library_import had an empty set of sources. However, the stubs modules that are created by the java_sdk_library_import...
Library, *java.SdkLibrary, *java.DexImport, *java.SdkLibraryImport: af := apexFileForJavaLibrary(ctx, child.(javaDependency), child.(android.Module)) if !af.Ok() { ctx.PropertyErrorf("java_libs", "%q is not configured to be compiled into dex", depName) 129 changes: 127 additions ...