01-06 09:14:38.640: E/dalvikvm(17655): Could not find class 'com.ahedy.app.act.ui.GuideActivity', referenced from method com.ahedy.app.act.ui.Splash.onCreate
GuideActivity为自定义Activity,项目为上线项目,最近在迭代开发,但是导入Eclipse中报错
01-06 09:18:19.345: E/AndroidRuntime(17655): FATAL EXCEPTION: main
01-06 09:18:19.345: E/AndroidRuntime(17655): Process: com.rongtuojinrong.app, PID: 17655
01-06 09:18:19.345: E/AndroidRuntime(17655): java.lang.NoClassDefFoundError: com.ahedy.app.act.ui.GuideActivity
01-06 09:18:19.345: E/AndroidRuntime(17655): at com.ahedy.app.act.ui.Splash.onCreate(Splash.java:46)
01-06 09:18:19.345: E/AndroidRuntime(17655): at android.app.Activity.performCreate(Activity.java:5285)
01-06 09:18:19.345: E/AndroidRuntime(17655): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1090)
01-06 09:18:19.345: E/AndroidRuntime(17655): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2259)
01-06 09:18:19.345: E/AndroidRuntime(17655): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2345)
01-06 09:18:19.345: E/AndroidRuntime(17655): at android.app.ActivityThread.access$1100(ActivityThread.java:139)
01-06 09:18:19.345: E/AndroidRuntime(17655): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
01-06 09:18:19.345: E/AndroidRuntime(17655): at android.os.Handler.dispatchMessage(Handler.java:102)
01-06 09:18:19.345: E/AndroidRuntime(17655): at android.os.Looper.loop(Looper.java:136)
01-06 09:18:19.345: E/AndroidRuntime(17655): at android.app.ActivityThread.main(ActivityThread.java:5314)
01-06 09:18:19.345: E/AndroidRuntime(17655): at java.lang.reflect.Method.invokeNative(Native Method)
01-06 09:18:19.345: E/AndroidRuntime(17655): at java.lang.reflect.Method.invoke(Method.java:515)
01-06 09:18:19.345: E/AndroidRuntime(17655): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
01-06 09:18:19.345: E/AndroidRuntime(17655): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:680)
01-06 09:18:19.345: E/AndroidRuntime(17655): at dalvik.system.NativeStart.main(Native Method)
先设置一下classpath啊,把android的依赖包什么加进去,还有就是选择一下jdk
谢谢,问题解决java.lang.NoClassDefFoundError,明显缺包。这是项目源码版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。