在我的前一篇文章中,一位社区成员推荐我使用消防站数据库下载一个名为make的应用程序,这样就可以使用防火墙数据库来了解它是如何工作的。我已经试过几次使应用程序工作,但我不断地得到这个错误,知道为什么吗?任何帮助都是非常感谢的!
错误消息:https://gyazo.com/8b8d41eddc9b176c376b3e98c2c249e7
error: InjectProcessingStep was unable to process 'AccountServiceImpl(com.google.firebase.auth.FirebaseAuth)' because 'User' could not be resolved.
Dependency trace:
=> element (CLASS): com.example.makeitso.model.service.impl.AccountServiceImpl
=> element (METHOD): getCurrentUser()
=> type (EXECUTABLE method): ()kotlinx.coroutines.flow.Flow<User>
=> type (DECLARED return type): kotlinx.coroutines.flow.Flow<User>
=> type (ERROR type argument): User
If type 'User' is a generated type, check above for compilation errors that may have prevented the type from being generated. Otherwise, ensure that type 'User' is on your classpath.
error: InjectProcessingStep was unable to process 'SplashViewModel(ConfigurationService,com.example.makeitso.model.service.AccountService,com.example.makeitso.model.service.LogService)' because 'ConfigurationService' could not be resolved.
Dependency trace:
=> element (CLASS): com.example.makeitso.screens.splash.SplashViewModel
=> element (CONSTRUCTOR): SplashViewModel(ConfigurationService,com.example.makeitso.model.service.AccountService,com.example.makeitso.model.service.LogService)
=> type (EXECUTABLE constructor): (ConfigurationService,com.example.makeitso.model.service.AccountService,com.example.makeitso.model.service.LogService)void
=> type (ERROR parameter type): ConfigurationService
If type 'ConfigurationService' is a generated type, check above for compilation errors that may have prevented the type from being generated. Otherwise, ensure that type 'ConfigurationService' is on your classpath.
error: InjectProcessingStep was unable to process 'TasksViewModel(com.example.makeitso.model.service.LogService,com.example.makeitso.model.service.StorageService,ConfigurationService)' because 'ConfigurationService' could not be resolved.
Dependency trace:
=> element (CLASS): com.example.makeitso.screens.tasks.TasksViewModel
=> element (FIELD): configurationService
=> type (ERROR field): ConfigurationService
If type 'ConfigurationService' is a generated type, check above for compilation errors that may have prevented the type from being generated. Otherwise, ensure that type 'ConfigurationService' is on your classpath.
error: ModuleProcessingStep was unable to process 'com.example.makeitso.model.service.module.ServiceModule' because 'ConfigurationServiceImpl' could not be resolved.
InjectProcessingStep was unable to process 'AccountServiceImpl(com.google.firebase.auth.FirebaseAuth)' because 'User' could not be resolved.
Dependency trace:
=> element (CLASS): com.example.makeitso.model.service.module.ServiceModule
=> element (METHOD): provideConfigurationService(ConfigurationServiceImpl)
=> type (EXECUTABLE method): (ConfigurationServiceImpl)ConfigurationService
=> type (ERROR parameter type): ConfigurationServiceImpl
If type 'ConfigurationServiceImpl' is a generated type, check above for compilation errors that may have prevented the type from being generated. Otherwise, ensure that type 'ConfigurationServiceImpl' is on your classpath.
error: BindingMethodProcessingStep was unable to process 'provideAccountService(com.example.makeitso.model.service.impl.AccountServiceImpl)' because 'ConfigurationServiceImpl' could not be resolved.
Dependency trace:
=> element (CLASS): com.example.makeitso.model.service.module.ServiceModule
=> element (METHOD): provideConfigurationService(ConfigurationServiceImpl)
=> type (EXECUTABLE method): (ConfigurationServiceImpl)ConfigurationService
=> type (ERROR parameter type): ConfigurationServiceImpl
If type 'ConfigurationServiceImpl' is a generated type, check above for compilation errors that may have prevented the type from being generated. Otherwise, ensure that type 'ConfigurationServiceImpl' is on your classpath.
error: BindingMethodProcessingStep was unable to process 'provideLogService(com.example.makeitso.model.service.impl.LogServiceImpl)' because 'ConfigurationServiceImpl' could not be resolved.
Dependency trace:
=> element (CLASS): com.example.makeitso.model.service.module.ServiceModule
=> element (METHOD): provideConfigurationService(ConfigurationServiceImpl)
=> type (EXECUTABLE method): (ConfigurationServiceImpl)ConfigurationService
=> type (ERROR parameter type): ConfigurationServiceImpl
If type 'ConfigurationServiceImpl' is a generated type, check above for compilation errors that may have prevented the type from being generated. Otherwise, ensure that type 'ConfigurationServiceImpl' is on your classpath.
error: BindingMethodProcessingStep was unable to process 'provideStorageService(com.example.makeitso.model.service.impl.StorageServiceImpl)' because 'ConfigurationServiceImpl' could not be resolved.
Dependency trace:
=> element (CLASS): com.example.makeitso.model.service.module.ServiceModule
=> element (METHOD): provideConfigurationService(ConfigurationServiceImpl)
=> type (EXECUTABLE method): (ConfigurationServiceImpl)ConfigurationService
=> type (ERROR parameter type): ConfigurationServiceImpl
If type 'ConfigurationServiceImpl' is a generated type, check above for compilation errors that may have prevented the type from being generated. Otherwise, ensure that type 'ConfigurationServiceImpl' is on your classpath.
error: BindingMethodProcessingStep was unable to process 'provideConfigurationService(ConfigurationServiceImpl)' because 'ConfigurationServiceImpl' could not be resolved.
Dependency trace:
=> element (CLASS): com.example.makeitso.model.service.module.ServiceModule
=> element (METHOD): provideConfigurationService(ConfigurationServiceImpl)
=> type (EXECUTABLE method): (ConfigurationServiceImpl)ConfigurationService
=> type (ERROR parameter type): ConfigurationServiceImpl
If type 'ConfigurationServiceImpl' is a generated type, check above for compilation errors that may have prevented the type from being generated. Otherwise, ensure that type 'ConfigurationServiceImpl' is on your classpath.
InjectProcessingStep was unable to process 'SplashViewModel(ConfigurationService,com.example.makeitso.model.service.AccountService,com.example.makeitso.model.service.LogService)' because 'ConfigurationService' could not be resolved.
InjectProcessingStep was unable to process 'TasksViewModel(com.example.makeitso.model.service.LogService,com.example.makeitso.model.service.StorageService,ConfigurationService)' because 'ConfigurationService' could not be resolved.
ModuleProcessingStep was unable to process 'com.example.makeitso.model.service.module.ServiceModule' because 'ConfigurationServiceImpl' could not be resolved.
BindingMethodProcessingStep was unable to process 'provideAccountService(com.example.makeitso.model.service.impl.AccountServiceImpl)' because 'ConfigurationServiceImpl' could not be resolved.
BindingMethodProcessingStep was unable to process 'provideLogService(com.example.makeitso.model.service.impl.LogServiceImpl)' because 'ConfigurationServiceImpl' could not be resolved.
BindingMethodProcessingStep was unable to process 'provideStorageService(com.example.makeitso.model.service.impl.StorageServiceImpl)' because 'ConfigurationServiceImpl' could not be resolved.
BindingMethodProcessingStep was unable to process 'provideConfigurationService(ConfigurationServiceImpl)' because 'ConfigurationServiceImpl' could not be resolved.
> Task :app:kaptDevDebugKotlin FAILED
Execution failed for task ':app:kaptDevDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction
> java.lang.reflect.InvocationTargetException (no error message)
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
发布于 2022-11-29 10:12:01
发布于 2022-11-29 11:17:13
进入项目栏并将android视图更改为project。
一旦完成,检查google-services.json文件是否紧急,如果它不在那里,请向所有者项目请求它,然后它就能工作了
https://stackoverflow.com/questions/74589401
复制相似问题