autofix-visibility
Fixes Soong visibility restriction errors by updating module visibility lists.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Fixes Soong visibility restriction errors by updating module visibility lists.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Comprehensive build error repair tool for C++, Rust, and Java projects using Soong, GN, Make, or CMake. Automatically fixes 30+ types of errors including headers, linking, APIs, and config.
Fixes function call errors with wrong number or type of arguments.
Fixes type mismatch errors by adding appropriate casts or conversions.
Fixes syntax errors in Android.bp files.
Removes unsupported or unknown compiler flags from build configurations.
Fixes scope and variable errors in BUILD.gn files.
| name | autofix-visibility |
| description | Fixes Soong visibility restriction errors by updating module visibility lists. |
Fixes Android Soong build errors related to module visibility restrictions.
module "X" is not visible to "//path/to:Y"visibility "//foo" is not visible from "//bar"Extract:
Find the Android.bp file that defines the target module.
Before:
cc_library {
name: "libprivate",
visibility: ["//system/core"],
}
After:
cc_library {
name: "libprivate",
visibility: [
"//system/core",
"//vendor/my_app", // ADD the requesting module's path
],
}
["//visibility:public"] - Visible to all["//visibility:private"] - Only same package["//path/to/package"] - Specific package["//path/to/package:__subpackages__"] - Package and subpackages