/
Getting Started - Flutter

Getting Started - Flutter

The AdPlayer Flutter plugin currently supports only for the Android platform!

In order to use the AdPlayer Flutter Plugin you should follow these steps:
1. Add the plugin dependency in your pubspec.yaml file:

dependencies: adplayer_flutter_plugin: ^1.0.0

2. Add the maven repository of our native library to the android/build.gradle file and fill in your your password:

allprojects { repositories { maven("https://us-central1-maven.pkg.dev/mobile-sdk-fd2e4/adservr-maven") } }

3. Make sure to enable multidex in your application.
There are several ways to do that, as described in the article. One way to do that would be to add the following to your android/app/build.gradle file:

defaultConfig { multiDexEnabled true } dependencies { implementation 'androidx.multidex:multidex:2.0.1' }

 

Related content

Displaying A Player - Flutter
Displaying A Player - Flutter
More like this
Flutter
Flutter
More like this
Demo Application - Flutter
Demo Application - Flutter
More like this
Floating Templates - Android
Floating Templates - Android
Read with this
Getting Started - Android
Getting Started - Android
More like this
Interstitial - Android
Interstitial - Android
Read with this