Android Studio 无法访问其他类中的函数

use*_*705 4 android gradle android-studio

我在module_A中有带有公共函数“go()”的A类,当我在module_B中使用A a=new A()时,它运行良好。但是当我调用函数“a.go()”时,android studio 写出无法访问包“xxxxxxxxx”的错误信息;

在module_B中,我在build.gradle文件中编写了编译项目(":module_A");

had*_*ilq 13

重建你的模块。那么,如果它不工作,你可以使用Invalidate Caches/ RestartFile菜单Android Studio