简体   繁体   English

Android Hilt多模块,是需要每个模块都加插件还是只加app

[英]Android Hilt multi-module, do I need to add plugin to each module or only app

This is not clearly explained in official documentation.这在官方文档中没有明确解释。

Do I need to add the hilt plugin to each module of my app or only to the main module (:app)?我是否需要将 hilt 插件添加到应用程序的每个模块或仅添加到主模块 (:app)?

Just add on main module,another module use from main module.只需添加主模块,另一个模块使用主模块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM