dnaextrim / flutter_ironsource_x

IronSource Ads & Mediation Plugin for Flutter
https://pub.dev/packages/flutter_ironsource_x
Apache License 2.0
10 stars 17 forks source link

class file for com.ironsource.mediationsdk.sdk.InterstitialListener not found #19

Closed korchix closed 2 years ago

korchix commented 2 years ago

hello,

after using the plugin version flutter_ironsource_x: ^2.7.1 . when runing the app, i get the issue bellow:

here is my setup:

Flutter (Channel stable, 2.10.3, on macOS 12.2. darwin-x64) • Flutter version 2.10.3 • Upstream repository https://github.com/flutter/flutter.git • Dart version 2.16.1 • DevTools version 2.9.2

plugins used in pupspec.yaml:

`Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. /Users/korchix/AppsDevFlutter/TestApps/gameamine_new/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:19: error: cannot access InterstitialListener flutterEngine.getPlugins().add(new com.metamorfosis_labs.flutter_ironsource_x.FlutterIronsource_xPlugin()); ^ class file for com.ironsource.mediationsdk.sdk.InterstitialListener not found 1 error

FAILURE: Build failed with an exception.

BUILD FAILED in 28s Exception: Gradle task assembleDebug failed with exit code 1`

dnaextrim commented 2 years ago

Try checking the build.gradle file again, make sure the settings match the ones in the example

vishalknishad commented 2 years ago

Hey,

The error is coming from mediation sdk.

Try adding this line in your app build.gradle

implementation 'com.ironsource.sdk:mediationsdk:7.0.4.1'