0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Android】gradle.lockを作成する

Last updated at Posted at 2025-06-25

はじめに

  • Androidアプリの脆弱性調査のためにLock Fileが必要になった
  • AndroidにおけるLock Fileはgradle.lock
  • gradle.lockとは
    • Gradleプロジェクトにおける依存関係のバージョンを固定し、ビルドの一貫性、安定性を得るもの
    • チーム開発で同じライブラリのバージョンを使うために使用する

動作環境・使用するツールや言語

  • Gradle 8.12
  • Android Studio

手順

  • build.graldeに設定追加
    • Gradleのバージョンロックを有効にする
dependencyLocking {
    lockAllConfigurations()
}
  • モジュールに対してコマンドを実行する
./gradlew :app:dependencies --write-locks 
  • ファイルが生成される
    • app/gradle.lockfile

参考資料

リンク1

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?