将一些XML文件(和图像)添加到我的Android应用程序后,该应用程序在Android 2.2上崩溃。这是我添加文件的提交:https://github.com/chaosbastler/opentraining/commit/03e90e3d6c083f5622e4ba36190a0358d5d40894
在Android 2.3.3上,一切正常。这是错误日志:
10-14 08:34:45.796: W/dalvikvm(308): ReferenceTable overflow (max=512)
10-14 08:34:45.796: W/dalvikvm(308): Last 10 entries in JNI local reference table:
10-14 08:34:45.796: W/dalvikvm(308): 502: 0x43ee3340 cls=Ljava/lang/String; (28 bytes)
10-14 08:34:45.796: W/dalvikvm(308): 503: 0x43ee33a0 cls=Ljava/lang/String; (28 bytes)
10-14 08:34:45.796: W/dalvikvm(308): 504: 0x43ee33f8 cls=Ljava/lang/String; (28 bytes)
10-14 08:34:45.796: W/dalvikvm(308): 505: 0x43ee3458 cls=Ljava/lang/String; (28 bytes)
10-14 08:34:45.796: W/dalvikvm(308): 506: 0x43ee34a8 cls=Ljava/lang/String; (28 bytes)
10-14 08:34:45.796: W/dalvikvm(308): 507: 0x43ee3500 cls=Ljava/lang/String; (28 bytes)
10-14 08:34:45.796: W/dalvikvm(308): 508: 0x43ee3558 cls=Ljava/lang/String; (28 bytes)
10-14 08:34:45.796: W/dalvikvm(308): 509: 0x43ee35b8 cls=Ljava/lang/String; (28 bytes)
10-14 08:34:45.796: W/dalvikvm(308): 510: 0x43ee3618 cls=Ljava/lang/String; (28 bytes)
10-14 08:34:45.796: W/dalvikvm(308): 511: 0x43ee3678 cls=Ljava/lang/String; (28 bytes)
10-14 08:34:45.796: W/dalvikvm(308): JNI local reference table summary (512 entries):
10-14 08:34:45.806: W/dalvikvm(308): 1 of Ljava/lang/Class; 164B
10-14 08:34:45.806: W/dalvikvm(308): 510 of Ljava/lang/String; 28B (510 unique)
10-14 08:34:45.806: W/dalvikvm(308): 1 of [Ljava/lang/String; 2108B
10-14 08:34:45.806: W/dalvikvm(308): Memory held directly by tracked refs is 16552 bytes
10-14 08:34:45.806: E/dalvikvm(308): Failed adding to JNI local ref table (has 512 entries)
我没有使用任何JNI,这似乎是Android操作系统本身的一个错误。除了支持Android 2.2之外的任何建议吗?