Код: Выделить всё
[versions]
hilt = "2.52"
[libraries]
hilt-android = { group = "com.google.dagger", name = "hilt-android", version.ref = "hilt" }
hilt-android-compiler = { group = "com.google.dagger", name = "hilt-android-compiler", version.ref = "hilt" }
Код: Выделить всё
[versions]
agp = "8.2.2"
[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
android-library = { id = "com.android.library", version.ref = "agp" }
Код: Выделить всё
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
Но время идет, и мне нужно обновить свой AGP, чтобы избежать проблем в будущем, когда новые технологии потребуют новейшей версии AGP. Итак, я обновил AGP до 8.7.2, как предложила моя IDE:

Теперь мои версии выглядят так:
Код: Выделить всё
[versions]
agp = "8.7.2"
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
Код: Выделить всё
error: ComponentProcessingStep was unable to process 'com.ilyin.projectfillword.GooglePlayApplication_HiltComponents.SingletonC' because 'com.ilyin.billing.showcase.ShowCase' could not be resolved.
Dependency trace:
=> element (CLASS): com.ilyin.core.di.GameBillingModule
=> element (METHOD): provideFillwordShowcase(com.ilyin.billing.showcase.ShowCase,android.telephony.TelephonyManager)
=> type (EXECUTABLE method): (com.ilyin.billing.showcase.ShowCase,android.telephony.TelephonyManager)com.ilyin.core.feature.billing.showcase.FillwordShowcase
=> type (ERROR parameter type): com.ilyin.billing.showcase.ShowCase
If type 'com.ilyin.billing.showcase.ShowCase' is a generated type, check above for compilation errors that may have prevented the type from being generated. Otherwise, ensure that type 'com.ilyin.billing.showcase.ShowCase' is on your classpath.
Вот как выглядит GameBillingModule:
Код: Выделить всё
package com.ilyin.core.di
import android.telephony.TelephonyManager
import com.ilyin.billing.showcase.ShowCase
import com.ilyin.core.feature.billing.showcase.FillwordShowcase
import com.ilyin.core.feature.billing.showcase.FillwordShowcaseImpl
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton
@Module
@InstallIn(SingletonComponent::class)
class GameBillingModule {
@Singleton
@Provides
fun provideFillwordShowcase(
generalShowCase: ShowCase,
telephonyManager: TelephonyManager,
): FillwordShowcase {
return FillwordShowcaseImpl(
generalShowCase = generalShowCase,
telephonyManager = telephonyManager,
)
}
}
Код: Выделить всё
GameBillingModuleКод: Выделить всё
implementation(project(":billing"))
Подробнее здесь: https://stackoverflow.com/questions/791 ... dle-plugin
Мобильная версия