2

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!

FVod
  • 2,245
  • 5
  • 25
  • 52
  • Yeah, multi-module projects fail for me as well on the new preview, so that's probably a bug. Just checking if it's already reported. – Marcin Koziński May 26 '16 at 11:33
  • The strangest thing is than I have another module on the project which is working find – FVod May 26 '16 at 11:37
  • I think it may be only for transitive dependencies coming from those modules, not the modules themselves. – Marcin Koziński May 26 '16 at 11:40
  • Thank you very much! The problem was on the version 2.2 of the Android Studio, now I'm using the version 2.1.1 and its working fine! – FVod May 26 '16 at 11:54

2 Answers2

2

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

Marcin Koziński
  • 10,835
  • 3
  • 47
  • 61
2

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

Ian Pinto
  • 2,199
  • 1
  • 21
  • 24