找到具体错误文件,发现文件左上角有个x.(excluded from compiled) 这就表明该类被编译排除,当然注入时候会找不到。 解决方案: 点settings->Compiler->Excludes,把所用类除去