Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

项目刚检出,运行报错 (sdk 4.2.2) target=17 #78

Open
frank0417 opened this issue Jun 12, 2013 · 10 comments
Open

项目刚检出,运行报错 (sdk 4.2.2) target=17 #78

frank0417 opened this issue Jun 12, 2013 · 10 comments

Comments

@frank0417
Copy link

06-12 22:38:36.169: E/dalvikvm(12962): Could not find class 'cn.eoe.app.ui.MainActivity', referenced from method cn.eoe.app.ui.SplashActivity.goHome
06-12 22:38:36.179: E/AndroidRuntime(12962): FATAL EXCEPTION: main
06-12 22:38:36.179: E/AndroidRuntime(12962): java.lang.NoClassDefFoundError: com.umeng.analytics.MobclickAgent
06-12 22:38:36.179: E/AndroidRuntime(12962): at cn.eoe.app.ui.base.BaseActivity.onCreate(BaseActivity.java:36)
06-12 22:38:36.179: E/AndroidRuntime(12962): at cn.eoe.app.ui.SplashActivity.onCreate(SplashActivity.java:21)
06-12 22:38:36.179: E/AndroidRuntime(12962): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
06-12 22:38:36.179: E/AndroidRuntime(12962): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
06-12 22:38:36.179: E/AndroidRuntime(12962): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
06-12 22:38:36.179: E/AndroidRuntime(12962): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
06-12 22:38:36.179: E/AndroidRuntime(12962): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
06-12 22:38:36.179: E/AndroidRuntime(12962): at android.os.Handler.dispatchMessage(Handler.java:99)
06-12 22:38:36.179: E/AndroidRuntime(12962): at android.os.Looper.loop(Looper.java:130)
06-12 22:38:36.179: E/AndroidRuntime(12962): at android.app.ActivityThread.main(ActivityThread.java:3683)
06-12 22:38:36.179: E/AndroidRuntime(12962): at java.lang.reflect.Method.invokeNative(Native Method)
06-12 22:38:36.179: E/AndroidRuntime(12962): at java.lang.reflect.Method.invoke(Method.java:507)
06-12 22:38:36.179: E/AndroidRuntime(12962): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:906)
06-12 22:38:36.179: E/AndroidRuntime(12962): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:664)
06-12 22:38:36.179: E/AndroidRuntime(12962): at dalvik.system.NativeStart.main(Native Method)

@frank0417
Copy link
Author

有没有人遇到此问题?

@IceskYsl
Copy link
Member

是elicpse?

@frank0417
Copy link
Author

google 官方adt,已经找到原因了,发布时jar没打进去

@kesco
Copy link

kesco commented Jun 18, 2013

请问是哪个JAR没打进去,我也遇到同样的问题。

@frank0417
Copy link
Author

umeng_sdk.jar

@vinceyuan
Copy link

我手动加入了umeng_sdk.jar,但是依然有这个问题。 Could not find class 'cn.eoe.app.ui.MainActivity', referenced from method cn.eoe.app.ui.SplashActivity.goHome 无论是在真实设备还是在虚拟机上都有。

我在mac上用eclipse。

@frank0417
Copy link
Author

在项目的java buid path 中,将order and export中的libraries都选中,然后重新编译一下

@vinceyuan
Copy link

果然如此。多谢 frank0417

其他project都没有这个要求

IceskYsl added a commit that referenced this issue Oct 5, 2013
@mjkohoh
Copy link
Contributor

mjkohoh commented Oct 11, 2013

不顺便关了这个issue @IceskYsl 。原谅我的强迫症

@mjkohoh
Copy link
Contributor

mjkohoh commented Oct 15, 2013

要不顺便关了这个issue @IceskYsl 。原谅我的强迫症

benbearchen pushed a commit to benbearchen/android-app that referenced this issue Dec 1, 2013
…akethe denpendencies will be exported when building
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants