android的ArrayMap类

时间:2023-03-09 06:51:21
android的ArrayMap类

运行的时候出现:

java.lang.NoClassDefFoundError: android.util.ArrayMap

http://*.com/questions/24574323/crash-with-android-4-1-with-arraymap
找到的答案:
ArrayMap was introduced in Api level 19, but it was also released in the compatibility library v4, so it would be enough to change the import to android.support.v4.util.ArrayMap instead of android.util.ArrayMap 用
android.support.v4.util.ArrayMap 替换 android.util.ArrayMap