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"

そして私の電話はアンドロイド2.2.1バージョンを持っています。

なぜ機能しないのですか?今助けてください。

4

1 に答える 1

0

レイアウトの問題である可能性があります。レイアウトのすべての属性を適切に維持してください

于 2013-01-10T12:10:17.210 に答える