问题描述
- 在Eclipse中的模拟器中可以运行,但是在手机上不能运行,都是ANdroid 2.3版本的
-
01-27 15:53:54.449: E/AndroidRuntime(6721): FATAL EXCEPTION: main
01-27 15:53:54.449: E/AndroidRuntime(6721): java.lang.ArrayIndexOutOfBoundsException
01-27 15:53:54.449: E/AndroidRuntime(6721): at com.amaker.wlo.LoginActivity.saveUserMsg(LoginActivity.java:95)
01-27 15:53:54.449: E/AndroidRuntime(6721): at com.amaker.wlo.LoginActivity.login(LoginActivity.java:80)
01-27 15:53:54.449: E/AndroidRuntime(6721): at com.amaker.wlo.LoginActivity.access$1(LoginActivity.java:65)
01-27 15:53:54.449: E/AndroidRuntime(6721): at com.amaker.wlo.LoginActivity$2.onClick(LoginActivity.java:54)
01-27 15:53:54.449: E/AndroidRuntime(6721): at android.view.View.performClick(View.java:2485)
01-27 15:53:54.449: E/AndroidRuntime(6721): at android.view.View$PerformClick.run(View.java:9080)
01-27 15:53:54.449: E/AndroidRuntime(6721): at android.os.Handler.handleCallback(Handler.java:587)
01-27 15:53:54.449: E/AndroidRuntime(6721): at android.os.Handler.dispatchMessage(Handler.java:92)
01-27 15:53:54.449: E/AndroidRuntime(6721): at android.os.Looper.loop(Looper.java:130)
01-27 15:53:54.449: E/AndroidRuntime(6721): at android.app.ActivityThread.main(ActivityThread.java:3821)
01-27 15:53:54.449: E/AndroidRuntime(6721): at java.lang.reflect.Method.invokeNative(Native Method)
01-27 15:53:54.449: E/AndroidRuntime(6721): at java.lang.reflect.Method.invoke(Method.java:507)
01-27 15:53:54.449: E/AndroidRuntime(6721): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:875)
01-27 15:53:54.449: E/AndroidRuntime(6721): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:633)
01-27 15:53:54.449: E/AndroidRuntime(6721): at dalvik.system.NativeStart.main(Native Method)
解决方案
你的手机版本太低了,
时间: 2025-01-24 14:46:53