Boris
Boris

Reputation: 8931

NoClassDefFoundError when starting android project

After updating my Android SDK today none of my projects are working anymore. Whenever I try to run a project in the emulator I get a NoClassDefFoundError for the main class of the project.

This class usually comes from another library project, that is linked with my main project (via right-click -> Properties -> Java Build Path -> Add...).

PS: all my JARs are in a "libs" folder, so that shouldn't be a problem...

Upvotes: 0

Views: 113

Answers (2)

LoneRanger
LoneRanger

Reputation: 61

You can also get this error if you have installed different versions of the JRE on the same machine. If you installed a previous version of the JRE for another program, its quite possible that you installed a newer version when you installed JDK. Just uninstall the older version and you should be good to go.

Upvotes: 2

Thomas Kaliakos
Thomas Kaliakos

Reputation: 3304

Why don't you try add them as referenced projects in the Android section of the project properties.

Upvotes: 1

Related Questions