0

这些都是我的 LogCat 中的“红线”

01-10 17:56:34.294: E/AndroidRuntime(16243): FATAL EXCEPTION: main
01-10 17:56:34.294: E/AndroidRuntime(16243): java.lang.RuntimeException: Unable to    start activity ComponentInfo{com.balance.start/com.balance.start.MainView}:       java.lang.IllegalArgumentException: current should be >= start and <= end
01-10 17:56:34.294: E/AndroidRuntime(16243):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2669)
01-10 17:56:34.294: E/AndroidRuntime(16243):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2685)
01-10 17:56:34.294: E/AndroidRuntime(16243):    at android.app.ActivityThread.access$2300(ActivityThread.java:126)
01-10 17:56:34.294: E/AndroidRuntime(16243):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2038)
01-10 17:56:34.294: E/AndroidRuntime(16243):    at android.os.Handler.dispatchMessage(Handler.java:99)
01-10 17:56:34.294: E/AndroidRuntime(16243):    at android.os.Looper.loop(Looper.java:123)
01-10 17:56:34.294: E/AndroidRuntime(16243):    at android.app.ActivityThread.main(ActivityThread.java:4633)
01-10 17:56:34.294: E/AndroidRuntime(16243):    at java.lang.reflect.Method.invokeNative(Native Method)
01-10 17:56:34.294: E/AndroidRuntime(16243):    at java.lang.reflect.Method.invoke(Method.java:521)
01-10 17:56:34.294: E/AndroidRuntime(16243):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
01-10 17:56:34.294: E/AndroidRuntime(16243):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
01-10 17:56:34.294: E/AndroidRuntime(16243):    at dalvik.system.NativeStart.main(Native Method)
01-10 17:56:34.294: E/AndroidRuntime(16243): Caused by: java.lang.IllegalArgumentException: current should be >= start and <= end
01-10 17:56:34.294: E/AndroidRuntime(16243):    at android.widget.NumberPicker.setCurrent(NumberPicker.java:408)
01-10 17:56:34.294: E/AndroidRuntime(16243):    at android.widget.DatePicker.updateSpinners(DatePicker.java:482)
01-10 17:56:34.294: E/AndroidRuntime(16243):    at android.widget.DatePicker.init(DatePicker.java:477)
01-10 17:56:34.294: E/AndroidRuntime(16243):    at com.balance.start.MainView.onCreate(MainView.java:62)
01-10 17:56:34.294: E/AndroidRuntime(16243):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
01-10 17:56:34.294: E/AndroidRuntime(16243):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2633)
01-10 17:56:34.294: E/AndroidRuntime(16243):    ... 11 more

我已经指定

uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="11"

我的手机有android 2.2.1 版本。

为什么它不起作用?现在请帮忙​​。

4

1 回答 1

0

可能是一些布局问题。已正确维护布局的所有属性

于 2013-01-10T12:10:17.210 回答