Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio cannot resolve symbol from imported module

I have an android app that worked great. I have imported the ActiveAndroid project as a module because I did a change on the Model's file (I added a setId method, and that's why I can't use the gradle's version). I was using Android Studio 1.5 and gradle 1.5.0. I have updated the android studio version to 2.2 (which make me update the gradle version to 2.2.0-alpha1. Then now, the import of active android fails. For instance:

import com.activeandroid.Model;

Detects an error: cannot resolve symbol 'Model'. What is going on? How can I solve that issue?

Thanks a lot!

like image 557
FVod Avatar asked May 20 '26 21:05

FVod


1 Answers

You can do "File" -> "Invalidate Caches...", and select "Invalidate and Restart" option to fix this.

like image 66
Ian Pinto Avatar answered May 23 '26 11:05

Ian Pinto



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!