创建新的AVD后无法运行Android应用程序

时间:2011-04-25 17:12:58

标签: java android eclipse illegalargumentexception runtimeexception

我创建了一个新的AVD,我的应用程序似乎不再运行了。这是堆栈跟踪,不知道如何诊断。

04-25 10:11:27.186: ERROR/AndroidRuntime(742): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.stocktwits.activity/org.stocktwits.activity.Main}: java.lang.IllegalArgumentException: no char field 'exponential'
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at android.app.ActivityThread.access$1500(ActivityThread.java:117)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at android.os.Handler.dispatchMessage(Handler.java:99)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at android.os.Looper.loop(Looper.java:123)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at android.app.ActivityThread.main(ActivityThread.java:3683)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.lang.reflect.Method.invokeNative(Native Method)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.lang.reflect.Method.invoke(Method.java:507)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at dalvik.system.NativeStart.main(Native Method)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742): Caused by: java.lang.IllegalArgumentException: no char field 'exponential'
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.EmulatedFields.put(EmulatedFields.java:459)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.EmulatedFieldsForDumping.put(EmulatedFieldsForDumping.java:83)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.text.DecimalFormatSymbols.writeObject(DecimalFormatSymbols.java:591)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.lang.reflect.Method.invokeNative(Native Method)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.lang.reflect.Method.invoke(Method.java:507)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeHierarchy(ObjectOutputStream.java:1219)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeNewObject(ObjectOutputStream.java:1575)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1847)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1689)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1653)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeFieldValues(ObjectOutputStream.java:1062)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeFields(ObjectOutputStream.java:1008)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.text.DecimalFormat.writeObject(DecimalFormat.java:1215)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.lang.reflect.Method.invokeNative(Native Method)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.lang.reflect.Method.invoke(Method.java:507)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeHierarchy(ObjectOutputStream.java:1219)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeNewObject(ObjectOutputStream.java:1575)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1847)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1689)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1653)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeFieldValues(ObjectOutputStream.java:1143)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:413)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeHierarchy(ObjectOutputStream.java:1241)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeNewObject(ObjectOutputStream.java:1575)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1847)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1689)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1653)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.util.ArrayList.writeObject(ArrayList.java:651)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.lang.reflect.Method.invokeNative(Native Method)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.lang.reflect.Method.invoke(Method.java:507)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeHierarchy(ObjectOutputStream.java:1219)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeNewObject(ObjectOutputStream.java:1575)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeObjectInternal(ObjectOutputStream.java:1847)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1689)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:1653)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at org.stocktwits.activity.Main.serializeQuotes(Main.java:701)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at org.stocktwits.activity.Main.populateDefaultQuotes(Main.java:533)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at org.stocktwits.activity.Main.onStart(Main.java:481)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1129)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at android.app.Activity.performStart(Activity.java:3791)
    04-25 10:11:27.186: ERROR/AndroidRuntime(742):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1620)

1 个答案:

答案 0 :(得分:2)

启动姜饼模拟器?请参阅此帖子:http://code.google.com/p/android/issues/detail?id=14495

您需要替换DecimalFormatSymbols代码