我的代码在4.x上完美运行,而不是在2.1我运行此错误。我在代码中添加了一些共享偏好。我如何调查?
01-05 17:10:30.340: E/AndroidRuntime(292): java.lang.StackOverflowError
01-05 17:10:30.340: E/AndroidRuntime(292): at java.nio.BaseByteBuffer.<init>(BaseByteBuffer.java:28)
01-05 17:10:30.340: E/AndroidRuntime(292): at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:49)
01-05 17:10:30.340: E/AndroidRuntime(292): at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:41)
01-05 17:10:30.340: E/AndroidRuntime(292): at java.nio.ReadWriteHeapByteBuffer.<init>(ReadWriteHeapByteBuffer.java:45)
01-05 17:10:30.340: E/AndroidRuntime(292): at java.nio.BufferFactory.newByteBuffer(BufferFactory.java:40)
01-05 17:10:30.340: E/AndroidRuntime(292): at java.nio.ByteBuffer.wrap(ByteBuffer.java:87)
01-05 17:10:30.340: E/AndroidRuntime(292): at java.nio.charset.CharsetEncoder.isLegalReplacement(CharsetEncoder.java:692)
01-05 17:10:30.340: E/AndroidRuntime(292): at java.nio.charset.CharsetEncoder.replaceWith(CharsetEncoder.java:804)
01-05 17:10:30.340: E/AndroidRuntime(292): at java.nio.charset.CharsetEncoder.<init>(CharsetEncoder.java:205)
01-05 17:10:30.340: E/AndroidRuntime(292): at com.ibm.icu4jni.charset.CharsetEncoderICU.<init>(CharsetEncoderICU.java:75)
01-05 17:10:30.340: E/AndroidRuntime(292): at com.ibm.icu4jni.charset.CharsetICU.newEncoder(CharsetICU.java:74)
01-05 17:10:30.340: E/AndroidRuntime(292): at com.android.internal.util.FastXmlSerializer.setOutput(FastXmlSerializer.java:292)