Tuesday, December 1, 2015

java.lang.java.lang.RuntimeException: Unable to start actjava.lang.IllegalArgumentException: wrong number of arguments; expected 0, got 1

Android studio 2.0 新的坑! 

今天,突然收到客户更新包的时候,不能运行的Bug! 我很是蛋疼,与开始查是什么问题?

java.lang.java.lang.RuntimeException: Unable to start actjava.lang.IllegalArgumentException: wrong number of arguments; expected 0, got 1

这个问题,是反射的问题,参数不正确!

我的 v1.9.3  的包是 用 Android studio 2.0 打的包! 但是V1.9.4 心的版本,发现在2.0 上有问题,所以就使用了稳定版1.4.0 版本。

于是,我怀疑是Android studio 2.0 搞鬼。我也是醉了!  我用AS 1.4.0 打了V1.9.5 版本,覆盖V1.9.4 的时候没有问题,但是覆盖V1.9.3 还是会出错!


下面是详细的error info:
java.lang.java.lang.RuntimeException: Unable to start activity ComponentInfo{c.ui.activity.WelcomeActivity}: java.lang.IllegalArgumentException: wrong number of arguments; expected 0, got 1
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2201)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2250)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at android.app.ActivityThread.access$800(ActivityThread.java:141)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1213)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:102)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:136)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5065)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at java.lang.reflect.Method.invokeNative(Native Method)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:515)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at dalvik.system.NativeStart.main(Native Method)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:  Caused by: java.lang.IllegalArgumentException: wrong number of arguments; expected 0, got 1
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at java.lang.reflect.Method.invokeNative(Native Method)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:515)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at com.google.dexmaker.stock.ProxyBuilder.callSuper(Unknown Source)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at com.eallcn.rentagent.proxy.callback.AsyncMethodAtomInterceptor.intercept(Unknown Source)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at com.eallcn.rentagent.proxy.Enhancer.invoke(Unknown Source)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at SingleControl_Proxy.setModel(SingleControl_Proxy.generated)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at com.eallcn.rentagent.proxyhelper.BaseAsyncHelper.a(Unknown Source)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at com.eallcn.rentagent.proxyhelper.BaseAsyncHelper.a(Unknown Source)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at com.eallcn.rentagent.proxyhelper.BaseAsyncHelper.onCreate(Unknown Source)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at com.eallcn.rentagent.proxyhelper.ActivityHelper.onCreate(Unknown Source)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at com.eallcn.rentagent.ui.activity.BaseActivity.onCreate(Unknown Source)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at com.eallcn.rentagent.ui.activity.WelcomeActivity.onCreate(Unknown Source)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at android.app.Activity.performCreate(Activity.java:5249)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2165)
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2250) 
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at android.app.ActivityThread.access$800(ActivityThread.java:141) 
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1213) 
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:102) 
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:136) 
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:5065) 
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at java.lang.reflect.Method.invokeNative(Native Method) 
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:515) 
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609) 
12-01 16:59:57.940 29200-29200/? E/AndroidRuntime:     at dalvik.system.NativeStart.main(Native Method) 

No comments:

Post a Comment