mate10 html文件,html5日期选择器在华为mate10上,偶尔会闪退

详细问题描述

离线打包的app,使用html5日期选择器,没有添加其他代码,在华为mate10上选择日期,app偶尔会闪退,不常有,但偶尔会出现

代码

运行环境

华为mate10,安卓8.0版本

联系方式

[QQ]124518132

安卓报错:

ndroid.view.InflateException:Binary XML file line #18: Binary XML file line #18: Error inflating class android.widget.SimpleMonthView

2 ......

3 Caused by:

4 java.lang.NullPointerException:Attempt to invoke virtual method 'int java.lang.Object.hashCode()' on a null object reference

5 java.util.Hashtable.get(Hashtable.java:365)

6 java.text.NumberFormat.getInstance(NumberFormat.java:826)

7 java.text.NumberFormat.getIntegerInstance(NumberFormat.java:495)

8 android.widget.SimpleMonthView.(SimpleMonthView.java:178)

9 android.widget.SimpleMonthView.(SimpleMonthView.java:156)

10 android.widget.SimpleMonthView.(SimpleMonthView.java:152)

11 java.lang.reflect.Constructor.newInstance0(Native Method)

12 java.lang.reflect.Constructor.newInstance(Constructor.java:334)

13 android.view.LayoutInflater.createView(LayoutInflater.java:658)

14 android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:801)

15 android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)

16 android.view.LayoutInflater.inflate(LayoutInflater.java:492)

17 android.view.LayoutInflater.inflate(LayoutInflater.java:423)

18 android.widget.DayPickerPagerAdapter.instantiateItem(DayPickerPagerAdapter.java:226)

19 com.android.internal.widget.ViewPager.addNewItem(ViewPager.java:809)

20 com.android.internal.widget.ViewPager.populate(ViewPager.java:959)

21 com.android.internal.widget.ViewPager.populate(ViewPager.java:891)

22 android.widget.DayPickerViewPager.onMeasure(DayPickerViewPager.java:54)

23 android.view.View.measure(View.java:22216)

24 android.view.ViewGroup.measureChild(ViewGroup.java:6642)

25 android.widget.DayPickerView.onMeasure(DayPickerView.java:192)

26 android.view.View.measure(View.java:22216)

27 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6671)

28 com.android.internal.widget.DialogViewAnimator.onMeasure(DialogViewAnimator.java:64)

29 android.view.View.measure(View.java:22216)

30 android.widget.ScrollView.measureChildWithMargins(ScrollView.java:1346)

31 android.widget.FrameLayout.onMeasure(FrameLayout.java:185)

32 android.widget.ScrollView.onMeasure(ScrollView.java:363)

33 android.view.View.measure(View.java:22216)

34 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6671)

35 android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1539)

36 android.widget.LinearLayout.measureVertical(LinearLayout.java:823)

37 android.widget.LinearLayout.onMeasure(LinearLayout.java:702)

38 android.view.View.measure(View.java:22216)

39 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6671)

40 android.widget.FrameLayout.onMeasure(FrameLayout.java:185)

41 android.view.View.measure(View.java:22216)

42 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6671)

43 android.widget.FrameLayout.onMeasure(FrameLayout.java:185)

44 android.view.View.measure(View.java:22216)

45 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6671)

46 android.widget.FrameLayout.onMeasure(FrameLayout.java:185)

47 android.view.View.measure(View.java:22216)

48 com.android.internal.widget.AlertDialogLayout.tryOnMeasure(AlertDialogLayout.java:144)

49 com.android.internal.widget.AlertDialogLayout.onMeasure(AlertDialogLayout.java:69)

50 android.view.View.measure(View.java:22216)

51 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6671)

52 android.widget.FrameLayout.onMeasure(FrameLayout.java:185)

53 android.view.View.measure(View.java:22216)

54 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6671)

55 android.widget.FrameLayout.onMeasure(FrameLayout.java:185)

56 android.view.View.measure(View.java:22216)

57 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6671)

58 android.widget.FrameLayout.onMeasure(FrameLayout.java:185)

59 com.android.internal.policy.DecorView.onMeasure(DecorView.java:831)

60 android.view.View.measure(View.java:22216)

61 android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2589)

62 android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1631)

63 android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1885)

64 android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1515)

65 android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7266)

66 android.view.Choreographer$CallbackRecord.run(Choreographer.java:981)

67 android.view.Choreographer.doCallbacks(Choreographer.java:790)

68 android.view.Choreographer.doFrame(Choreographer.java:721)

69 android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:967)

70 android.os.Handler.handleCallback(Handler.java:808)

71 android.os.Handler.dispatchMessage(Handler.java:101)

72 android.os.Looper.loop(Looper.java:166)

73 android.app.ActivityThread.main(ActivityThread.java:7425)

74 java.lang.reflect.Method.invoke(Native Method)

75 com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)

76 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值