LoginSignup
0
0

More than 1 year has passed since last update.

The compiler option dagger.hilt.android.internal.projectType is not a recognized Hilt option. Is there a typo? と言われたら

Posted at

はじめに

延々ハマったのでメモ。

何が起こったか

ビルド時に
The compiler option dagger.hilt.android.internal.projectType is not a recognized Hilt option. Is there a typo?
というエラーが出てビルドに失敗する。

原因

DaggerHiltのプラグインのバージョンが合ってなかった!!

Android Gradle Plugin Version が7.4.0, Gradleが7.5 の場合は
com.google.dagger:hilt-android-gradle-plugin:2.40.5

だと動いた。

補足

Gradleのバージョン確認は
File > ProjectStructure > Project から確認/再設定できるよ

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