Skip to content

NoClassDefFoundError when building demo app with Eclipse #9

@mvglasow

Description

@mvglasow

Steps to reproduce:

  • Use Eclipse Luna with ADT 23.0.6
  • Open a new workspace
  • Import the project as "Android Project from Existing Code"
  • Run it as an Android Application

The app will build and launch, but immediately crash with a NoClassDefFoundError.

I have encountered this before in a different project, where changing the Java compiler compliance level from 1.6 to 1.7 solved it. The same approach works here, but requires targeting Android 4.4 (API 19), else the toolchain will complain.

Steps in detail:

  • Go to Project Properties
  • In Android, choose Android 4.4.2 (API 19) as the build target.
  • In Java Compiler, set the compiler compliance level to 1.7.

With these, I was able to build and run the demo app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions