adtrace / adtrace_sdk_flutter

This is the Flutter SDK of
https://adtrace.io/
MIT License
6 stars 1 forks source link

The plugin `adtrace_sdk` uses a deprecated version of the Android embedding #1

Closed sajjadG closed 2 years ago

sajjadG commented 2 years ago

I'm following the readme and adding adtrace_sdk: ^0.1.3 to my pubspec.yaml, it show's this error:

$ flutter packages get
Running "flutter pub get" in Befarman-Flutter...                 1,400ms
The plugin `adtrace_sdk` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter
will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

pubspec.yaml:

...
environment:
  sdk: '>=2.12.0 <3.0.0'

dependencies:
  flutter:
    sdk: flutter
...
sajjadG commented 2 years ago

I get this error while building:

Error: Cannot run with sound null safety, because the following dependencies
don't support null safety:

 - package:adtrace_sdk

For solutions, see https://dart.dev/go/unsound-null-safety

FAILURE: Build failed with an exception.
namini40 commented 2 years ago

thanks for reporting this issue. please check this