解决 android Cannot access ‘<init>‘: it is private in

最近要在2个非直接依赖module使用单例,有一种注入依赖的方式可以,但是报了如下错误:

Cannot access '': it is private in

经过查阅资料,原来是依赖的单例类的构造函数不能使用private,这里做个记录;

又可以愉快玩耍了。

你可能感兴趣的:(Android,android,kotlin)