You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
I have a problem at runtime. I'm not sure but it seems it's because i've updated the adt to the 22 revision. With the old adt, everything worked.
So my problem appears at runtime.
dalvikvm [W] Unable to resolve superclass of Lcom/ecab/utils/MyPrefs_; (906)
dalvikvm [W] Link of class 'Lcom/ecab/utils/MyPrefs_;' failed
AndroidRuntime [E] FATAL EXCEPTION: main
AndroidRuntime [E] java.lang.NoClassDefFoundError: com.ecab.utils.MyPrefs_
MyPrefs is a class annotated with @SharedPref(value=Scope.UNIQUE).
I've checked, the classes are correctly generated and in project properties > Java Build Path > Order and Export, I have .apt_generated which is checked.
That's a known bug with ADT 22. When you upgrade to ADT 22, the new 'Android Private Librairies' that contains your libraries is not checked by default. Therefore, your project does not take into account your library and in this case it does not take the api jar.
Activity
aat-antoine commentedon May 19, 2013
Okay !
I've finally found a solution. We have just to tick 'Android Private libraries' in project properties > Java Build Path > Order and Export.
More informations :
https://code.google.com/p/android/issues/detail?id=55304
DayS commentedon May 19, 2013
This seems to new... I think we should keep this issue open until we update the Wiki to explain that.
jeremiemartinez commentedon May 20, 2013
That's a known bug with ADT 22. When you upgrade to ADT 22, the new 'Android Private Librairies' that contains your libraries is not checked by default. Therefore, your project does not take into account your library and in this case it does not take the api jar.
DayS commentedon May 23, 2013
I updated the FAQ page
rom1v commentedon Jun 3, 2013
Big thanks, I had the same issue, checking "Android Private libraries" solves the problem ;-)
zhouyixiang commentedon Jun 12, 2013
Thank you, this saved a lot of my time.
JoanZapata commentedon Jun 12, 2013
Idem, thanks!