Compose lint
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Android Lint は、コードの正確性を検証するための強力なツールです。アプリを製品版としてリリースする前に、特定された lint エラーをすべて修正することを強くおすすめします。
Compose には、デフォルトで多数の lint チェックが用意されています。これにより、Compose コードの正しさを検証できます。
Compose の lint チェックの最小バージョン要件
互換性を簡素化し、Lint チェックのサポートの安定性を向上させるため、Compose 1.9 では Android Gradle プラグイン(AGP)/ Lint バージョン 8.8.2 以降が必要です。
AGP バージョン 8.8.2 より前のバージョンを使用しており、アップグレードできない場合は、gradle.properties
ファイルで使用する lint バージョンを指定できます。
android.experimental.lint.version = 8.8.2
これまで、Compose lint チェックの複雑な依存関係により、互換性の問題が頻繁に発生し、正しいツール バージョン(Android Studio、AGP/Lint、Compose)を特定することが困難でした。
Compose、AGP、Studio の最小バージョン要件は次のとおりです。
Compose バージョン |
必要な AGP / Lint バージョン |
必要な Studio バージョン |
1.9 |
8.8.2+ |
Ladybug+ |
1.8 |
8.6.0 以降 |
Koala Feature Drop -> Meerkat |
1.7 |
8.4.0 以降 |
Jellyfish -> Meerkat |
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-08-21 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-08-21 UTC。"],[],[],null,["# Compose lint\n\n[Android Lint](/studio/write/lint) is a powerful tool for verifying the correctness or\nyour code. It is highly recommended that you fix any identified lint errors\nbefore releasing your app to production.\n\nCompose ships with a number of lint checks by default. This helps verify the\ncorrectness of your Compose code.\n\nMinimum version requirement for Compose lint checks\n---------------------------------------------------\n\nTo simplify compatibility and improve stability for lint check support, Compose\n1.9 requires Android Gradle Plugin (AGP) / Lint version 8.8.2 or higher.\n\nIf you're using an AGP version lower than 8.8.2 and are unable to upgrade, you\ncan specify the lint version to use in your `gradle.properties` file: \n\n android.experimental.lint.version = 8.8.2\n\nPreviously, the complex dependencies of Compose lint checks led to frequent\ncompatibility issues and made it difficult to determine the correct tool\nversions (Android Studio, AGP/Lint, Compose).\n\nMinimum version requirements for Compose, AGP, and Studio are as follows:\n\n|---------------------|---------------------------------|--------------------------------|\n| **Compose Version** | **Required AGP / Lint version** | **Required Studio version** |\n| 1.9 | 8.8.2+ | Ladybug+ |\n| 1.8 | 8.6.0+ | Koala Feature Drop -\\\u003e Meerkat |\n| 1.7 | 8.4.0+ | Jellyfish -\\\u003e Meerkat |"]]