Search code examples
androidandroid-studioandroid-gradle-pluginactiveandroidandroid-gradle-2.0

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!


Solution

  • It's a bug in Android Studio 2.2 Preview 1. It's reported here: https://code.google.com/p/android/issues/detail?id=210255