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版本的 「紅線」 在我logcat中。
爲什麼它不起作用? 現在請幫助。
請添加您的詳細crashlog。 – Payal
嘿檢查你的應用程序構建sdk – TNR
它在虛擬設備(AVD)上正常工作。那麼,SDK有沒有可能出現問題? –