简体   繁体   中英

Eclipse - Running an Android app that runs on other machines' Eclipses, won't run in my Eclipse

I've spent hours trying to figure out what the problem could be. As I said the code runs fine on the Android emulators on other machines' Eclipses, but in my Eclipse it won't run. It compiles fine, but when I run it, Logcat shows me a bunch of errors, many of them being NoClassDefFoundError's for classes that I have right in my Eclipse (and which were able to be complied). Does anyone have any insight as to what might be the case that I'm overlooking?

Perhaps the libraries referenced by the NoClassDefFoundError's are missing.

You should try to figure out where those should be--or where they are located on other peoples systems, make sure they are at the same location on your system and then ensure they are in your build path.

Double check your references, especially under the Android tab. By default Android references aren't exported, so if A depends on B, which in turn depends on C, A has to include C in it's libraries, otherwise C won't get included (causing NoClassDefFoundError's)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM