I have the class A with the public function "go()" in the module_A,when I use the A a=new A() in the module_B, It work well.but when I call the function "a.go()",the android studio write the error message that you cannot access the package "xxxxxxxxx";
In the module_B,I have write the compile project(":module_A") in the build.gradle file;
Rebuild your module. Then if it didn't work you can use Invalidate Caches/ Restart
in File
menu of Android Studio
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With