Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

AA 2.7.1 + adt 22 #592

Closed
Closed

Description

@aat-antoine

Hi,

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.

Activity

  1. aat-antoine commented on May 19, 2013

    @aat-antoine
    Author

    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

  2. DayS commented on May 19, 2013

    @DayS
    Contributor

    This seems to new... I think we should keep this issue open until we update the Wiki to explain that.

  3. jeremiemartinez commented on May 20, 2013

    @jeremiemartinez

    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.

  4. DayS commented on May 23, 2013

    @DayS
    Contributor

    I updated the FAQ page

  5. rom1v commented on Jun 3, 2013

    @rom1v
    Contributor

    Big thanks, I had the same issue, checking "Android Private libraries" solves the problem ;-)

  6. zhouyixiang commented on Jun 12, 2013

    @zhouyixiang

    Thank you, this saved a lot of my time.

  7. JoanZapata commented on Jun 12, 2013

    @JoanZapata
    Contributor

    Idem, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions