本文介绍了java.lang.NoClassDefFoundError的例外的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好我的应用程序越来越此异常

hi all my app is getting this exception

  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)

和活动中的code这在该行得到的异常

and the code in the activity which get the exception at this lines

        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);
            }
      }
};

谁能帮助我就可以请,这个程序是可以正常使用,一旦得到这个异​​常

CAN anyone help me on it please ,this app was working perfectly and once got this exception

推荐答案

更​​改u'r库文件名以/库,并检查它。

Change u'r library file names to "/libs" and check it.

看起来好像你还没有的jar添加到您的APK正确。检查项目设置。这是你的设置,没有API的一个错误的问题。

Looks like as if you haven't the jar added to your APK correctly. Check your project setup. This is a problem with your setup, not a bug of the API.

的…

这将解释如何解决classdefnotfounderror

this will explain you, how to fix the classdefnotfounderror

这篇关于java.lang.NoClassDefFoundError的例外的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 16:54