cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynatrace flutter plugin issue

saikishore
Visitor

After implementing the monitoring of a Flutter application, following all the paths in the directory and the necessary configuration points informed in the flutter plugin.
https://pub.dev/packages/dynatrace_flutter_plugin

After following the installation steps I'm getting the following below error :

 

../flutter/.pub-cache/hosted/pub.dartlang.org/dynatrace_flutter_plugin-2.237.0/lib/src/agent/http/http_client.dart:5:7:

 

Error: The non-abstract class 'DynatraceHttpClient' is missing implementations for these members:

- HttpClient.connectionFactory=

- HttpClient.keyLog=

Try to either

- provide an implementation,

- inherit an implementation from a superclass or mixin,

- mark the class as abstract, or

- provide a 'noSuchMethod' implementation.

 

class DynatraceHttpClient implements HttpClient {

      ^^^^^^^^^^^^^^^^^^^

org-dartlang-sdk:///third_party/dart/sdk/lib/_http/http.dart:1554:12: Context: 'HttpClient.connectionFactory=' is defined here.

  void set connectionFactory(

           ^^^^^^^^^^^^^^^^^

org-dartlang-sdk:///third_party/dart/sdk/lib/_http/http.dart:1704:12: Context: 'HttpClient.keyLog=' is defined here.

  void set keyLog(Function(String line)? callback);

           ^^^^^^

lib/size_and_position/main_size_and_position.dart:56:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.

- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../flutter/packages/flutter/lib/src/widgets/binding.dart').

    WidgetsBinding.instance!.addPostFrameCallback(_afterLayout);

                   ^

lib/app_clone/movies_concept/movies_concept_page.dart:46:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.

- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../flutter/packages/flutter/lib/src/widgets/binding.dart').

    WidgetsBinding.instance!.addPostFrameCallback((_) {

                   ^

lib/app_clone/photo_concept/photo_concept_page.dart:88:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.

- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../flutter/packages/flutter/lib/src/widgets/binding.dart').

    WidgetsBinding.instance!.addPostFrameCallback((_) {

                   ^

lib/app_clone/shoes_store/shoes_store_page.dart:286:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.

- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../flutter/packages/flutter/lib/src/widgets/binding.dart').

    WidgetsBinding.instance!.addPostFrameCallback((_) {

                   ^

lib/app_clone/sports_store/sports_store_page.dart:225:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.

- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../flutter/packages/flutter/lib/src/widgets/binding.dart').

    WidgetsBinding.instance!.addPostFrameCallback((_) {

                   ^

../flutter/.pub-cache/git/circle_wheel_scroll-c22e01667a1bd952573d5cae087f6404ea69face/lib/circle_wheel_scroll_view.dart:696:24: Warning: Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.

- 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart' ('../flutter/packages/flutter/lib/src/scheduler/binding.dart').

      SchedulerBinding.instance!.addPostFrameCallback((_) {

                       ^

lib/animations/split_widget/split_diagonal_widget.dart:57:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.

- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../flutter/packages/flutter/lib/src/widgets/binding.dart').

    WidgetsBinding.instance!.addPostFrameCallback(_onLayoutDone);

                   ^

lib/animations/split_widget/split_half_widget.dart:62:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.

- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../flutter/packages/flutter/lib/src/widgets/binding.dart').

    WidgetsBinding.instance!.addPostFrameCallback(_onLayoutDone);

                   ^

lib/menu_navigations/header_navigation/header_navigation.dart:56:20: Warning: Operand of null-aware operation '!' has type 'WidgetsBinding' which excludes null.

- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart' ('../flutter/packages/flutter/lib/src/widgets/binding.dart').

    WidgetsBinding.instance!.addPostFrameCallback((_) {

                   ^

Failed to package /Users/administrator/Downloads/flutter-samples-master.

Command PhaseScriptExecution failed with a nonzero exit code

3 REPLIES 3

HannahM
Dynatrace Leader
Dynatrace Leader

Hi @saikishore , a new version of the Dynatrace Flutter plugin was published which contains a fix for this.
Can you please try it and let me know?
https://pub.dev/packages/dynatrace_flutter_plugin/versions 

 

Hey @HannahM Thanks for solving this issue and I can be able to install the dynatrace flutter plugin now.

 

After following the steps in below link :

 

https://pub.dev/packages/dynatrace_flutter_plugin/example

 

I'm unable to get the 3rd party calls, User Interactions & Gestures metrics in iOS.

 

I have tried all the steps in the documentation provided by the dynatrace flutter plugin.

 

Can you please provide any sample app with above scenarios you mentioned in the link and share with me ?

That's great news. I see you've had an update on your question, so I'll leave this thread for now. 

Featured Posts