2016-07-17 68 views
1

當我在module_B中使用A a = new A()時,我擁有module_A中公用函數爲「go()」的類A, 它運行良好但是當我調用函數「a.go()」時,android studio會寫出錯誤信息,表示無法訪問包「xxxxxxxxx」;Android Studio無法訪問其他類中的函數

在module_B中,我已經在build.gradle文件中編寫了編譯項目(「:module_A」);

+1

添加一些代碼.. – Zoe

回答

2

重建你的模塊。那麼如果它不起作用,你可以使用Invalidate Caches/ RestartFile菜單Android Studio