1.@ViewModelInject注解过时
过时2.ApplicationComponent类找不到
报错3。解决方案
@ViewModelInject注解改为@HiltViewModel+@Inject
hilt
ApplicationComponent用SingletonComponent代替
@ViewModelInject注解改为@HiltViewModel+@Inject
hilt
ApplicationComponent用SingletonComponent代替
本文标题:Hilt升级到alpha03后报错
本文链接:https://www.haomeiwen.com/subject/kujzqltx.html
网友评论