์ด๋ฒ ์ค๋ฅ๋ dagger hilt๋ฅผ ์ฐ๋ ์ฌ๋๋ค์๊ฒ ๋ํ๋ ์ ์๋ ์ค๋ฅ์ด๋ค
์ค๋ฅ ๋ฌธ๊ตฌ
* Exception is:
org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'dagger.hilt.android.plugin'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (plugin dependency must include a version number for this source)
at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.resolveToFoundResult ...
์ค๋ฅ ํด๊ฒฐ ๋ฐฉ๋ฒ
settings.gradle์ ๋ค์ด๊ฐ ๋ค์,
๋ค์๊ณผ ๊ฐ์ ์ฝ๋๋ฅผ ์จ์ค๋ค.
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
resolutionStrategy {
eachPlugin {
if( requested.id.id == 'dagger.hilt.android.plugin') {
useModule("com.google.dagger:hilt-android-gradle-plugin:2.39.1")
}
}
}
}
๋์ ๊ฒฝ์ฐ์๋ ์ด๋ ๊ฒ ํด๊ฒฐํ๋ค.
728x90