autofix-blueprint-syntax
Fixes syntax errors in Android.bp files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Fixes syntax errors in Android.bp files.
用 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.
Removes unsupported or unknown compiler flags from build configurations.
Fixes scope and variable errors in BUILD.gn files.
Fixes script permission errors by making files executable.
| name | autofix-blueprint-syntax |
| description | Fixes syntax errors in Android.bp files. |
Fixes parsing and syntax errors in Android Blueprint (Android.bp) files.
Android.bp:X:Y: parse errorexpected ',' before ']'unexpected '}'unrecognized propertyFrom: Android.bp:42:15: parse error: expected ',' before ']'
Open Android.bp at line 42.
Missing comma:
// Before (error)
srcs: [
"file1.cpp"
"file2.cpp"
]
// After
srcs: [
"file1.cpp",
"file2.cpp",
]
Trailing comma issue:
// Before (error in some cases)
deps: [
"libfoo",
] // Trailing comma is OK in Android.bp
Missing colon:
// Before
name "mylib"
// After
name: "mylib",
Unclosed bracket:
// Before
srcs: [
"main.cpp",
// Missing ]
// After
srcs: [
"main.cpp",
],
Run m blueprint_tools or check with Android build.