嗨我的应用程序正在获得此异常
09-03 12:11:10.677: E/AndroidRuntime(31704): FATAL EXCEPTION: main
09-03 12:11:10.677: E/AndroidRuntime(31704): java.lang.NoClassDefFoundError: mPay2Park.zwl.com.StartNow$1
09-03 12:11:10.677: E/AndroidRuntime(31704): at mPay2Park.zwl.com.StartNow.<init>(StartNow.java:449)
09-03 12:11:10.677: E/AndroidRuntime(31704): at java.lang.Class.newInstanceImpl(Native Method)
09-03 12:11:10.677: E/AndroidRuntime(31704): at java.lang.Class.newInstance(Class.java:1319)
09-03 12:11:10.677: E/AndroidRuntime(31704): at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
09-03 12:11:10.677: E/AndroidRuntime(31704): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1882)
09-03 12:11:10.677: E/AndroidRuntime(31704): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1992)
09-03 12:11:10.677: E/AndroidRuntime(31704): at android.app.ActivityThread.access$600(ActivityThread.java:127)
09-03 12:11:10.677: E/AndroidRuntime(31704): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1158)
09-03 12:11:10.677: E/AndroidRuntime(31704): at android.os.Handler.dispatchMessage(Handler.java:99)
09-03 12:11:10.677: E/AndroidRuntime(31704): at android.os.Looper.loop(Looper.java:137)
09-03 12:11:10.677: E/AndroidRuntime(31704): at android.app.ActivityThread.main(ActivityThread.java:4441)
09-03 12:11:10.677: E/AndroidRuntime(31704): at java.lang.reflect.Method.invokeNative(Native Method)
09-03 12:11:10.677: E/AndroidRuntime(31704): at java.lang.reflect.Method.invoke(Method.java:511)
09-03 12:11:10.677: E/AndroidRuntime(31704): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
09-03 12:11:10.677: E/AndroidRuntime(31704): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
09-03 12:11:10.677: E/AndroidRuntime(31704): at dalvik.system.NativeStart.main(Native Method)
以及活动中获取此行异常的代码
OnWheelScrollListener scrolledListener = new OnWheelScrollListener() {
public void onScrollingStarted(WheelView wheel) {
wheelScrolled = true;
}
public void onScrollingFinished(WheelView wheel) {
wheelScrolled = false;
}
};
private OnWheelChangedListener days_changedListener = new OnWheelChangedListener() {
public void onChanged(WheelView wheel, int oldValue, int newValue) {
if (!wheelScrolled) {
ChossenTime = duration_optionsList.get(newValue);
}
}
};
任何人都可以帮助我,这个应用程序运行正常,一旦得到此异常
答案 0 :(得分:3)
将库文件名更改为“/ libs”并进行检查。
看起来好像你没有正确地将jar添加到你的APK中。检查项目设置。这是您的设置问题,而不是API的错误。
http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17 ...
这将解释你,如何修复classdefnotfounderror