Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio cannot access the function in the other class

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;

like image 815
user6599705 Avatar asked Dec 07 '22 21:12

user6599705


1 Answers

Rebuild your module. Then if it didn't work you can use Invalidate Caches/ Restart in File menu of Android Studio.

like image 122
hadilq Avatar answered Dec 10 '22 11:12

hadilq