This is actually a well-known issue on Eclipse. We have a section in the wiki for this.
You can fix it by (here is an example for Pref
but it should work for every generated clases :
- Importing the whole package: import com.company.*;
- Using a fully qualified name : @SharedPref com.company.MyPref_ myPref;
- Having MyBean and MyPref_ in the same package.