iampawan / ChatGPT-Flutter-AIChatBot

A Chatbot chat app built using the Flutter framework and OpenAI's GPT-3 language model.
245 stars 105 forks source link

The following _CastError was thrown building Builder: Null check operator used on a null value #10

Open ahmedelramah opened 1 year ago

ahmedelramah commented 1 year ago

======== Exception caught by widgets library ======================================================= The following _CastError was thrown building Builder: Null check operator used on a null value

The relevant error-causing widget was: MaterialApp MaterialApp:file:///C:/Users/KIMO%20STORE/StudioProjects/untitled/lib/main.dart:17:12 When the exception was thrown, this was the stack:

0 OpenAI.build (package:chat_gpt_sdk/src/openai.dart:59:58)

1 ChatScreenState.initState (package:untitled/chat_screen.dart:25:31)

2 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:5101:55)

3 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4944:5)

... Normal element mounting (4 frames)

7 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3953:16)

8 Element.updateChild (package:flutter/src/widgets/framework.dart:3676:20)

9 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

10 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

11 StatelessElement.update (package:flutter/src/widgets/framework.dart:5044:5)

12 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

13 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6384:14)

14 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

15 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6384:14)

16 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

17 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

18 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

19 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

20 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

21 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

22 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6384:14)

23 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

24 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

25 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

26 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

27 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

28 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

29 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6384:14)

30 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

31 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

32 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

33 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

34 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

35 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

36 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

37 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

38 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

39 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

40 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

41 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6384:14)

42 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

43 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

44 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

45 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

46 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

47 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

48 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6384:14)

49 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

50 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

51 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

52 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

53 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

54 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

55 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

56 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

57 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

58 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

59 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

60 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

61 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

62 StatelessElement.update (package:flutter/src/widgets/framework.dart:5044:5)

63 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

64 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

65 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

66 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

67 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

68 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

69 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6384:14)

70 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

71 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

72 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

73 ProxyElement.update (package:flutter/src/widgets/framework.dart:5301:5)

74 _InheritedNotifierElement.update (package:flutter/src/widgets/inherited_notifier.dart:107:11)

75 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

76 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6384:14)

77 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

78 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

79 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

80 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

81 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

82 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

83 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

84 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

85 ProxyElement.update (package:flutter/src/widgets/framework.dart:5301:5)

86 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

87 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

88 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

89 ProxyElement.update (package:flutter/src/widgets/framework.dart:5301:5)

90 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

91 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

92 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

93 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

94 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

95 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

96 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

97 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

98 StatelessElement.update (package:flutter/src/widgets/framework.dart:5044:5)

99 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

100 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

101 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

102 StatelessElement.update (package:flutter/src/widgets/framework.dart:5044:5)

103 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

104 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6384:14)

105 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

106 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

107 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

108 ProxyElement.update (package:flutter/src/widgets/framework.dart:5301:5)

109 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

110 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

111 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

112 ProxyElement.update (package:flutter/src/widgets/framework.dart:5301:5)

113 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

114 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

115 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

116 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

117 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

118 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

119 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

120 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

121 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

122 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

123 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

124 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

125 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

126 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

127 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2743:19)

128 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:863:21)

129 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:381:5)

130 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1289:15)

131 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1218:9)

132 SchedulerBinding.scheduleWarmUpFrame. (package:flutter/src/scheduler/binding.dart:942:7)

136 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:192:26)

(elided 3 frames from class _Timer and dart:async-patch)

Reloaded 2 of 1103 libraries in 1,676ms (compile: 45 ms, reload: 700 ms, reassemble: 754 ms). W/1.raster( 8265): type=1400 audit(0.0:77353): avc: denied { search } for name="battery" dev="sysfs" ino=6689 scontext=u:r:untrusted_app:s0:c160,c256,c512,c768 tcontext=u:object_r:sysfs_batteryinfo:s0 tclass=dir permissive=0

SHOAIBAHMED12842 commented 1 year ago

======== Exception caught by widgets library ======================================================= The following _CastError was thrown building Builder: Null check operator used on a null value

The relevant error-causing widget was:

MaterialApp MaterialApp:file:///C:/Users/KIMO%20STORE/StudioProjects/untitled/lib/main.dart:17:12 When the exception was thrown, this was the stack:

0 OpenAI.build (package:chat_gpt_sdk/src/openai.dart:59:58)

1 ChatScreenState.initState (package:untitled/chat_screen.dart:25:31)

2 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:5101:55)

3 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4944:5)

... Normal element mounting (4 frames)

7 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3953:16)

8 Element.updateChild (package:flutter/src/widgets/framework.dart:3676:20)

9 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

10 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

11 StatelessElement.update (package:flutter/src/widgets/framework.dart:5044:5)

12 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

13 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6384:14)

14 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

15 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6384:14)

16 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

17 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

18 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

19 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

20 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

21 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

22 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6384:14)

23 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

24 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

25 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

26 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

27 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

28 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

29 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6384:14)

30 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

31 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

32 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

33 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

34 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

35 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

36 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

37 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

38 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

39 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

40 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

41 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6384:14)

42 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

43 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

44 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

45 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

46 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

47 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

48 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6384:14)

49 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

50 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

51 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

52 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

53 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

54 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

55 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

56 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

57 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

58 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

59 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

60 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

61 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

62 StatelessElement.update (package:flutter/src/widgets/framework.dart:5044:5)

63 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

64 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

65 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

66 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

67 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

68 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

69 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6384:14)

70 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

71 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

72 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

73 ProxyElement.update (package:flutter/src/widgets/framework.dart:5301:5)

74 _InheritedNotifierElement.update (package:flutter/src/widgets/inherited_notifier.dart:107:11)

75 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

76 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6384:14)

77 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

78 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

79 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

80 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

81 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

82 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

83 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

84 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

85 ProxyElement.update (package:flutter/src/widgets/framework.dart:5301:5)

86 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

87 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

88 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

89 ProxyElement.update (package:flutter/src/widgets/framework.dart:5301:5)

90 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

91 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

92 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

93 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

94 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

95 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

96 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

97 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

98 StatelessElement.update (package:flutter/src/widgets/framework.dart:5044:5)

99 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

100 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

101 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

102 StatelessElement.update (package:flutter/src/widgets/framework.dart:5044:5)

103 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

104 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:6384:14)

105 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

106 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

107 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

108 ProxyElement.update (package:flutter/src/widgets/framework.dart:5301:5)

109 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

110 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

111 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

112 ProxyElement.update (package:flutter/src/widgets/framework.dart:5301:5)

113 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

114 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

115 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

116 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

117 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

118 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

119 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

120 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

121 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

122 StatefulElement.update (package:flutter/src/widgets/framework.dart:5156:5)

123 Element.updateChild (package:flutter/src/widgets/framework.dart:3660:15)

124 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4993:16)

125 StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5133:11)

126 Element.rebuild (package:flutter/src/widgets/framework.dart:4690:5)

127 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2743:19)

128 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:863:21)

129 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:381:5)

130 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1289:15)

131 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1218:9)

132 SchedulerBinding.scheduleWarmUpFrame. (package:flutter/src/scheduler/binding.dart:942:7)

136 _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:192:26)

(elided 3 frames from class _Timer and dart:async-patch) Reloaded 2 of 1103 libraries in 1,676ms (compile: 45 ms, reload: 700 ms, reassemble: 754 ms). W/1.raster( 8265): type=1400 audit(0.0:77353): avc: denied { search } for name="battery" dev="sysfs" ino=6689 scontext=u:r:untrusted_app:s0:c160,c256,c512,c768 tcontext=u:object_r:sysfs_batteryinfo:s0 tclass=dir permissive=0

I also have same kind of error can anyone help?