Code Monkey home page Code Monkey logo

flutter_applovin_max's Introduction

flutter_applovin_max

All Contributors


🎉The official plugin has finally been released!🎉
pub.dev applovin_max
https://github.com/AppLovin/AppLovin-MAX-Flutter
We recommend using this plugin in the future.

I would like to thank everyone who has used my plug-ins so far, as well as all the contributors.


Welcomes contribution from everyone.

ko-fi

Flutter plugin for showing applovin MAX mediation ads rewardvideo (Android & Ios).

MAX is AppLovin's in-app monetization solution.

Move beyond the traditional monetization solution and integrate MAX. MAX is a single unbiased auction where advertisers get equal access to all ad inventory and bid simultaneously, which drives more competition and higher CPMs for you. You can read more about it here.

To request an invite for MAX, apply here.

Please check out our documentation to get started on integrating and enabling mediated networks using our guides.

Getting Started

Add inside the tag. Android

<meta-data android:name="applovin.sdk.key"
    android:value="YOUR_SDK_KEY"/>

IOS info.plist

<key>AppLovinSdkKey</key
<string>YOUR_SDK_KEY</string>
	<key>SKAdNetworkItems</key>
	<array>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>2U9PT9HC89.skadnetwork</string>
    </dict>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>4468km3ulz.skadnetwork</string>
    </dict>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>4FZDC2EVR5.skadnetwork</string>
    </dict>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>7UG5ZH24HU.skadnetwork</string>
    </dict>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>8s468mfl3y.skadnetwork</string>
    </dict>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>9RD848Q2BZ.skadnetwork</string>
    </dict>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>9T245VHMPL.skadnetwork</string>
    </dict>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>av6w8kgt66.skadnetwork</string>
    </dict>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>F38H382JLK.skadnetwork</string>
    </dict>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>hs6bdukanm.skadnetwork</string>
    </dict>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>KBD757YWX3.skadnetwork</string>
    </dict>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>ludvb6z3bs.skadnetwork</string>
    </dict>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>M8DBW4SV7C.skadnetwork</string>
    </dict>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>mlmmfzh3r3.skadnetwork</string>
    </dict>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>prcb7njmu6.skadnetwork</string>
    </dict>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>t38b2kh725.skadnetwork</string>
    </dict>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>TL55SBB4FM.skadnetwork</string>
    </dict>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>WZMMZ9FP6W.skadnetwork</string>
    </dict>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>YCLNXRL5PM.skadnetwork</string>
    </dict>
    <dict>
        <key>SKAdNetworkIdentifier</key>
        <string>ydx93a7ass.skadnetwork</string>
    </dict>
</array>
<key>GADApplicationIdentifier</key>
<string>ca-app-pub-3940256099942544~1458002511</string>

Preparing Mediated Networks

IOS

https://dash.applovin.com/documentation/mediation/ios/mediation-adapters.

Android

https://dash.applovin.com/documentation/mediation/android/mediation-adapters

important point

When installing the iron source, the following error is output.
Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:16:5-39:19 to override.
You could, as the error says, add tools:replace="android:label" to your node in your manifest
See the example for flutter_applovin_max/example/Android

        android:name="io.flutter.app.FlutterApplication"
        android:label="flutter_applovin_max_example"
        android:icon="@mipmap/ic_launcher">

add schemas xmlns:tools="http://schemas.android.com/tools"
<manifest xmlns:android="http://schemas.android.com/apk/res/android"package="dev.iori.flutter_applovin_max_example" xmlns:tools="http://schemas.android.com/tools">

Using this plugin

see directory example

Visit applovin MAX website to know more

このプラグインについて

このプラグインは applovin MAXのリワードビデオをFlutterアプリで利用できるようにネイティブSDKを統合します。 これにより Flutter アプリでメディエーション機能を利用したリワード動画を実装できます。

Contributors ✨

Thanks goes to these wonderful people (emoji key):


dvird

💻

superkeka

💻

Noor Ali Butt

💻

fujiser

💬

This project follows the all-contributors specification. Contributions of any kind welcome!

flutter_applovin_max's People

Contributors

allcontributors[bot] avatar bastiedotorg avatar dvird avatar ioridev avatar nooralibutt avatar superkeka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

flutter_applovin_max's Issues

Unable to load Maven meta-data from https://jcenter.bintray.com/com/applovin/applovin-sdk/maven-metadata.xml.

ERROR Compiler plugin Repository off jcenter .

Could not resolve com.applovin:applovin-sdk:+.
Required by:
project :app
project :app > project :flutter_applovin_max
> Failed to list versions for com.applovin:applovin-sdk.
> Unable to load Maven meta-data from https://jcenter.bintray.com/com/applovin/applovin-sdk/maven-metadata.xml.
> Could not HEAD 'https://jcenter.bintray.com/com/applovin/applovin-sdk/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

Implement mediation debugger to improve testing

I am trying to implement Applovin Max mediation with 4-5 different networks. Have enabled test device with all networks as well as from Applovin max dashboard. But it keeps showing me Applovin test ads.

How can I test other network ads and if they are working or not? Please implement Mediation Debugger feature of Applovin Max SDK into this plugin, I will be very very thankful to u.

https://dash.applovin.com/documentation/mediation/android/testing-networks/mediation-debugger

MEDIATION DEBUG REPORT

Based on the following mediation report. Does it mean am already integrate my app with AppLovin with FAN

): ========== NETWORKS ==========
D/AppLovinSdk( 3783): ---------- APPLOVIN_NETWORK ----------
D/AppLovinSdk( 3783): Status - COMPLETE
D/AppLovinSdk( 3783): SDK - 10.3.4
D/AppLovinSdk( 3783): Adapter - 10.3.4
D/AppLovinSdk( 3783): ---------- FACEBOOK_MEDIATE ----------
D/AppLovinSdk( 3783): Status - COMPLETE
D/AppLovinSdk( 3783): SDK - 6.8.0
D/AppLovinSdk( 3783): Adapter - 6.8.0.0
D/AppLovinSdk( 3783): ---------- GOOGLE_AD_MANAGER_NETWORK ----------
D/AppLovinSdk( 3783): Status - INCOMPLETE INTEGRATION
D/AppLovinSdk( 3783): SDK - UNAVAILABLE
D/AppLovinSdk( 3783): Adapter - UNAVAILABLE
D/AppLovinSdk( 3783): ---------- ADMOB_NETWORK ----------
D/AppLovinSdk( 3783): Status - INCOMPLETE INTEGRATION
D/AppLovinSdk( 3783): SDK - UNAVAILABLE
D/AppLovinSdk( 3783): Adapter - UNAVAILABLE
D/AppLovinSdk( 3783): ========== AD UNITS ==========
D/AppLovinSdk( 3783): ---------- XXXXXXXXXXXXXXXX BANNER ----------
D/AppLovinSdk( 3783): Identifier - XXXXXXXXXXXXcba
D/AppLovinSdk( 3783): Format - Banner
D/AppLovinSdk( 3783): [MediationDebuggerListAdapter]
D/AppLovinSdk( 3783):
D/AppLovinSdk( 3783): ---------- XXXXXXXXXXX INTERSTISTIAL ----------
D/AppLovinSdk( 3783): Identifier - xxxxxxxxxxxxxxxxxxxxx67
D/AppLovinSdk( 3783): Format - Interstitial
D/AppLovinSdk( 3783): ========== END ==========

But Wht i got this erro at the end?
It seems like AppLovinSdk has not initialized yet?

E/AppLovinSdk( 3783): [AppLovinSdk]
E/AppLovinSdk( 3783): **********
E/AppLovinSdk( 3783): Failed to initialize 3rd-party SDKs. Please make sure to initialize the AppLovin SDK with an Activity context.
E/AppLovinSdk( 3783): **********

What could be the problem?
Am integrating AppLovin with FAN bidding

crash

app crash reason applovin ads package

AppLovinPrivacySettings error on android

AppLovinPrivacySettings error on android

Output:
`/Users/hanzla/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_applovin_max-2.1.2/android/src/main/java/dev/iori/flutter_applovin_max/FlutterApplovinMaxPlugin.java:80: error: cannot find symbol
AppLovinPrivacySettings.setHasUserConsent( call.argument("HasConsent"), context );
^
symbol: variable AppLovinPrivacySettings
location: class FlutterApplovinMaxPlugin
/Users/hanzla/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_applovin_max-2.1.2/android/src/main/java/dev/iori/flutter_applovin_max/FlutterApplovinMaxPlugin.java:81: error: cannot find symbol
AppLovinPrivacySettings.setIsAgeRestrictedUser( call.argument("IsAgeRestricted"), context );
^
symbol: variable AppLovinPrivacySettings
location: class FlutterApplovinMaxPlugin
/Users/hanzla/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_applovin_max-2.1.2/android/src/main/java/dev/iori/flutter_applovin_max/FlutterApplovinMaxPlugin.java:82: error: cannot find symbol
AppLovinPrivacySettings.setDoNotSell( call.argument("DoNotSell"), context );
^
symbol: variable AppLovinPrivacySettings
location: class FlutterApplovinMaxPlugin
Note: /Users/hanzla/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_applovin_max-2.1.2/android/src/main/java/dev/iori/flutter_applovin_max/FlutterApplovinMaxPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':flutter_applovin_max:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.
`

** AppLovinPrivacySettings throwing error on android but working fine on iOS**
How do we have to solve this ?

need Interstial ad

need interstial ad as well . currently in mediation it does not show facebook interstial ad . replace showintersitial video ad with simple interstial ad.

Fatal Exception: java.lang.RuntimeException: Unable to destroy MainActivity java.lang.NullPointerException

Getting this exception on Firebase crashlytics

Fatal Exception: java.lang.RuntimeException: Unable to destroy activity {MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void w7.k.e(w7.k$c)' on a null object reference
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5667)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5712)
at android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:44)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2317)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8625)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 3.1.0-0.0.pre.1268, on macOS 12.4 21F79 darwin-arm, locale en-CA)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] Android Studio (version 2021.1)
[✓] IntelliJ IDEA Community Edition (version 2019.3.5)
[✓] VS Code (version 1.63.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

• No issues found!

Banner ad causes crashing on Android

I'm using default banner ad implementation of this plugin and have been getting a lot of these in my play console ANR crash menu (flutter version 3.0.2, plugin version 2.1.1):

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
signal 6 (SIGABRT), code -1 (SI_QUEUE)

pid: 0, tid: 0 >>> com.domain.name <<<

backtrace:
  #00  pc 000000000004de8c  /apex/com.android.runtime/lib64/bionic/libc.so (abort+164)
  #00  pc 000000000055ea14  /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+2308)
  #00  pc 0000000000013978  /system/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+76)
  #00  pc 0000000000006e18  /system/lib64/liblog.so (__android_log_assert+336)
  #00  pc 0000000000215014  /system/lib64/libhwui.so (android::uirenderer::skiapipeline::SkiaOpenGLPipeline::getFrame()+52)
  #00  pc 000000000021df14  /system/lib64/libhwui.so (android::uirenderer::renderthread::CanvasContext::draw()+188)
  #00  pc 000000000022059c  /system/lib64/libhwui.so (_ZNSt3__110__function6__funcIZN7android10uirenderer12renderthread13DrawFrameTask11postAndWaitEvE3$_0NS_9allocatorIS6_EEFvvEEclEv$c303f2d2360db58ed70a2d0ac7ed911b+480)
  #00  pc 000000000020ed94  /system/lib64/libhwui.so (android::uirenderer::WorkQueue::process()+220)
  #00  pc 0000000000230024  /system/lib64/libhwui.so (android::uirenderer::renderthread::RenderThread::threadLoop()+88)
  #00  pc 00000000000154d0  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+260)
  #00  pc 0000000000014d94  /system/lib64/libutils.so (thread_data_t::trampoline(thread_data_t const*)+412)
  #00  pc 00000000000af868  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+64)
  #00  pc 000000000004fe48  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

I should say these crashes only occur on Android 11, anyone has any ideas what's causing it?

No adapter loaded

Am trying to test ads on facebook mediation with AppLovin using this sdk but i got above error ..What colud be a problem ... I have done everything including as instructed in documentation..
AppLovin ads loads perfect but facebook mediation they cant?

Banner Ad IOS

Hi.
Would it be possible to add BannerAds support for IOS? I've seen that they are only available on Android and I would like to use it on IOS.

Failed install on iOs

Hello everyone.

I am trying to install this Plugin on iOs 14, but it gives an error and does not download correctly from Cocoapods.

The error occurs when you try to install smaato-ios-sdk.
Does anyone know what can cause the error?

I copy below the error that appears.
I use Flutter 1.22.6

-> Installing smaato-ios-sdk (21.6.10)
> Copying smaato-ios-sdk from /Users/adrian/Library/Caches/CocoaPods/Pods/Release/smaato-ios-sdk/21.6.10-37ec4 to Pods/smaato-ios-sdk
- Running pre install hooks
[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (/Users/adrian/Documents/GitHub/Globdob/globdob/ios/Pods/AppLovinMediationAdColonyAdapter/AppLovinMediationAdColonyAdapter-4.5.0.0.1/AppLovinMediationAdColonyAdapter.framework, /Users/adrian/Documents/GitHub/Globdob/globdob/ios/Pods/AppLovinMediationByteDanceAdapter/AppLovinMediationByteDanceAdapter-3.4.2.3.0/AppLovinMediationByteDanceAdapter.framework, /Users/adrian/Documents/GitHub/Globdob/globdob/ios/Pods/AppLovinMediationChartboostAdapter/AppLovinMediationChartboostAdapter-8.4.0.1/AppLovinMediationChartboostAdapter.framework, /Users/adrian/Documents/GitHub/Globdob/globdob/ios/Pods/AppLovinMediationFacebookAdapter/AppLovinMediationFacebookAdapter-6.2.0.1/AppLovinMediationFacebookAdapter.framework, /Users/adrian/Documents/GitHub/Globdob/globdob/ios/Pods/AppLovinMediationFyberAdapter/AppLovinMediationFyberAdapter-7.8.0.2/AppLovinMediationFyberAdapter.framework, /Users/adrian/Documents/GitHub/Globdob/globdob/ios/Pods/AppLovinMediationGoogleAdManagerAdapter/AppLovinMediationGoogleAdManagerAdapter-7.69.0.2/AppLovinMediationGoogleAdManagerAdapter.framework, /Users/adrian/Documents/GitHub/Globdob/globdob/ios/Pods/AppLovinMediationGoogleAdapter/AppLovinMediationGoogleAdapter-7.69.0.2/AppLovinMediationGoogleAdapter.framework, /Users/adrian/Documents/GitHub/Globdob/globdob/ios/Pods/AppLovinMediationInMobiAdapter/AppLovinMediationInMobiAdapter-9.1.5.0/AppLovinMediationInMobiAdapter.framework, /Users/adrian/Documents/GitHub/Globdob/globdob/ios/Pods/AppLovinMediationIronSourceAdapter/AppLovinMediationIronSourceAdapter-7.1.0.0.0/AppLovinMediationIronSourceAdapter.framework, /Users/adrian/Documents/GitHub/Globdob/globdob/ios/Pods/AppLovinMediationMaioAdapter/AppLovinMediationMaioAdapter-1.5.6.0/AppLovinMediationMaioAdapter.framework, /Users/adrian/Documents/GitHub/Globdob/globdob/ios/Pods/AppLovinMediationMyTargetAdapter/AppLovinMediationMyTargetAdapter-5.9.11.0/AppLovinMediationMyTargetAdapter.framework, /Users/adrian/Documents/GitHub/Globdob/globdob/ios/Pods/AppLovinMediationSmaatoAdapter/AppLovinMediationSmaatoAdapter-21.6.10.1/AppLovinMediationSmaatoAdapter.framework, /Users/adrian/Documents/GitHub/Globdob/globdob/ios/Pods/AppLovinMediationTapjoyAdapter/AppLovinMediationTapjoyAdapter-12.7.1.1/AppLovinMediationTapjoyAdapter.framework, /Users/adrian/Documents/GitHub/Globdob/globdob/ios/Pods/AppLovinMediationTencentGDTAdapter/AppLovinMediationTencentGDTAdapter-4.12.3.1/AppLovinMediationTencentGDTAdapter.framework, /Users/adrian/Documents/GitHub/Globdob/globdob/ios/Pods/AppLovinMediationUnityAdsAdapter/AppLovinMediationUnityAdsAdapter-3.6.0.0/AppLovinMediationUnityAdsAdapter.framework, /Users/adrian/Documents/GitHub/Globdob/globdob/ios/Pods/AppLovinMediationVungleAdapter/AppLovinMediationVungleAdapter-6.8.1.3/AppLovinMediationVungleAdapter.framework, /Users/adrian/Documents/GitHub/Globdob/globdob/ios/Pods/AppLovinMediationYandexAdapter/AppLovinMediationYandexAdapter-2.20.0.0/AppLovinMediationYandexAdapter.framework, and /Users/adrian/Documents/GitHub/Globdob/globdob/ios/Pods/AppLovinSDK/applovin-ios-sdk-6.15.2/AppLovinSDK.framework)

/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/xcode/target_validator.rb:84:in `block (2 levels) in verify_no_static_framework_transitive_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/xcode/target_validator.rb:74:in `each_key'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/xcode/target_validator.rb:74:in `block in verify_no_static_framework_transitive_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/xcode/target_validator.rb:73:in `each'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/xcode/target_validator.rb:73:in `verify_no_static_framework_transitive_dependencies'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer/xcode/target_validator.rb:38:in `validate!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:595:in `validate_targets'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/installer.rb:162:in `install!'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command/install.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.10.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

Exception: Error running pod install

Banner not showing on ios + Note

Could someone Please help
why the banner ads showing on android but not on IOS
How to solve this issue ?
also I found an error on the document that you provide it on pub.dev
the info.plist code need to be fix
first line need to close with >
<key>AppLovinSdkKey</key
Thank you

is it still support Facebook bidding on ios

Hello I'm using this flutter plugin both with Facebook plugin on my ios App
but I have problem I can't get any bid request from Applovin to Facebook using this plugin
could someone please confirm that he/she is successfully got bid request on ios using this plugin
Thank you

Banner Ads problem

I amusing this plugin for applovin facebook mediation. Interstitial ads displays correctly but banners they take too long even sometime cant display them they only shows black screen.What could be a problem?

Error start Plugin

Not Start !! LOG

c:\src.pub-cache\hosted\pub.dartlang.org\flutter_applovin_max-0.0.3\android\src\main\java\dev\iori\flutter_applovin_max\RewardedVideo.java:20: error: RewardedVideo is not abstract and does not override abstract method onAdDisplayFailed(MaxAd,MaxError) in MaxAdListener
public class RewardedVideo implements MaxRewardedAdListener {
^
c:\src.pub-cache\hosted\pub.dartlang.org\flutter_applovin_max-0.0.3\android\src\main\java\dev\iori\flutter_applovin_max\RewardedVideo.java:49: error: method does not override or implement a method from a supertype
@OverRide
^
c:\src.pub-cache\hosted\pub.dartlang.org\flutter_applovin_max-0.0.3\android\src\main\java\dev\iori\flutter_applovin_max\RewardedVideo.java:72: error: method does not override or implement a method from a supertype

@Override
^

Note: c:\src.pub-cache\hosted\pub.dartlang.org\flutter_applovin_max-0.0.3\android\src\main\java\dev\iori\flutter_applovin_max\FlutterApplovinMaxPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':flutter_applovin_max:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 18s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

Xcode Build Error

When running Xcode Build via flutter run the following error is thrown:

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_MARewardedAd", referenced from:
      objc-class-ref in FlutterApplovinMaxPlugin.o
  "_OBJC_CLASS_$_ALSdk", referenced from:
      objc-class-ref in FlutterApplovinMaxPlugin.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


Showing All Messages
Undefined symbol: _OBJC_CLASS_$_MARewardedAd
Undefined symbol: _OBJC_CLASS_$_ALSdk

What is the problem and how can I solve the issue? My flutter doctor is okay and I managed to install the newest version.

java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference

D/AppLovinSdk( 6404): [AppLovinSdk]
D/AppLovinSdk( 6404): ========================================
D/AppLovinSdk( 6404): =====AppLovin SDK=====
D/AppLovinSdk( 6404): ===SDK Versions===
D/AppLovinSdk( 6404): Version: 10.3.5
D/AppLovinSdk( 6404): Plugin Version:
D/AppLovinSdk( 6404): Ad Review Version:
D/AppLovinSdk( 6404): ===Device Info===
D/AppLovinSdk( 6404): OS: 10 (Q - API 29)
D/AppLovinSdk( 6404): GAID: <Enable verbose logging to see the GAID to use for test devices - https://monetization-support.applovin.com/hc/en-us/articles/236114328-How-can-I-expose-verbose-logging-for-the-SDK>
D/AppLovinSdk( 6404): Model: Google Pixel 3
D/AppLovinSdk( 6404): Locale: en_US
D/AppLovinSdk( 6404): Emulator: true
D/AppLovinSdk( 6404): WVVC: null
D/AppLovinSdk( 6404): Tablet: false
D/AppLovinSdk( 6404): Application ID: com.homo.chat
D/AppLovinSdk( 6404): Target SDK: 30
D/AppLovinSdk( 6404): ExoPlayer Version: 2014001
D/AppLovinSdk( 6404): ===SDK Settings===
D/AppLovinSdk( 6404): SDK Key:
D/AppLovinSdk( 6404): Mediation Provider: max
D/AppLovinSdk( 6404): TG: 54
D/AppLovinSdk( 6404): Test Mode On: true
D/AppLovinSdk( 6404): Verbose Logging On: false
D/AppLovinSdk( 6404): ===Privacy States===
D/AppLovinSdk( 6404): Please review AppLovin MAX documentation to be compliant with regional privacy policies.
D/AppLovinSdk( 6404):
D/AppLovinSdk( 6404): Age Restricted User - No value set
D/AppLovinSdk( 6404): Has User Consent - No value set
D/AppLovinSdk( 6404): "Do Not Sell" - No value set
D/AppLovinSdk( 6404): ========================================
D/AndroidRuntime( 6404): Shutting down VM
E/AndroidRuntime( 6404): FATAL EXCEPTION: main
E/AndroidRuntime( 6404): Process: com.homo.chat, PID: 6404
E/AndroidRuntime( 6404): java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
E/AndroidRuntime( 6404): 	at com.applovin.impl.mediation.e.a(Unknown Source:14)
E/AndroidRuntime( 6404): 	at com.applovin.impl.mediation.MediationServiceImpl.collectSignal(Unknown Source:28)
E/AndroidRuntime( 6404): 	at com.applovin.impl.mediation.b.b$2.run(Unknown Source:26)
E/AndroidRuntime( 6404): 	at android.os.Handler.handleCallback(Handler.java:883)
E/AndroidRuntime( 6404): 	at android.os.Handler.dispatchMessage(Handler.java:100)
E/AndroidRuntime( 6404): 	at android.os.Looper.loop(Looper.java:214)
E/AndroidRuntime( 6404): 	at android.app.ActivityThread.main(ActivityThread.java:7356)
E/AndroidRuntime( 6404): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 6404): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
E/AndroidRuntime( 6404): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
I/Sentry  ( 6404): Uncaught exception received.

Only Reward Ads

Thanks for making this package. How can i implement banner and interstitial ad from this package?.Is it only for reward video ads?. Once Again thank you in advance.

Only AppLovin ads

I need to integrate only AppLovin ads and turns out it automatically adds all the pods of mediation adapter.

Native ads not show

java.lang.ClassCastException: com.applovin.impl.mediation.a.d cannot be cast to com.applovin.impl.mediation.a.b

can you help me?

Make plugin for whole applovin

Feature request-
Instead of only support max feature of the AppLovin, I would say to support all features of applovin so that we can show ads for banner, & others. Thanks

Errors when trying to load and display Ads

Hi everyone. Ia mtrying to load and display ads but after following all the steps in the documentation, no ads(test ads) is being shown in the emulator and the following message was displayed in the console:

Syncing files to device Android SDK built for x86...
D/EGL_emulation(10041): eglMakeCurrent: 0xdfd4eee0: ver 3 0 (tinfo 0xc7506600)
E/BufferQueueProducer(10041): [SurfaceTexture-0-10041-2] queueBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(10041): [SurfaceTexture-0-10041-2] dequeueBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(10041): [SurfaceTexture-0-10041-2] setAsyncMode: BufferQueue has been abandoned
Restarted application in 6,570ms.
D/FRCPlugin(10041): Sending fetchTimeout: 60
I/chatty  (10041): uid=10084(diamy.xxxxxx.formalournal) 1.ui identical 1 line
D/Banner Max Android(10041): Constructor
W/AppLovinSdk(10041): [AppLovinSdk] Attempted to load ad before SDK initialization. Please wait until after the SDK has initialized, e.g. AppLovinSdk.initializeSdk(Context, SdkInitializationListener).
D/EGL_emulation(10041): eglMakeCurrent: 0xdfd4eee0: ver 3 0 (tinfo 0xc7506600)
D/FRCPlugin(10041): Sending fetchTimeout: 60
I/flutter (10041): 
I/flutter (10041): 
I/flutter (10041): 6
D/AppLovinSdk(10041): [MaxInterstitialAd] Created new MaxInterstitialAd (MaxInterstitialAd{adUnitId='xxxxxxxxxxx', adListener=null, revenueListener=null, isReady=false})
W/AppLovinSdk(10041): [AppLovinSdk] Attempted to load ad before SDK initialization. Please wait until after the SDK has initialized, e.g. AppLovinSdk.initializeSdk(Context, SdkInitializationListener).
W/AppLovinSdk(10041): [MediationAdLoadManager] Attempting to load ad for same ad unit id (xxxxxxxxxx) while another ad load is already in progress!
D/Banner Max Android(10041): Constructor
W/AppLovinSdk(10041): [AppLovinSdk] Attempted to load ad before SDK initialization. Please wait until after the SDK has initialized, e.g. AppLovinSdk.initializeSdk(Context, SdkInitializationListener).
D/EGL_emulation(10041): eglMakeCurrent: 0xdfd4eee0: ver 3 0 (tinfo 0xc7506600)
E/BufferQueueProducer(10041): [SurfaceTexture-0-10041-3] dequeueBuffer: BufferQueue has been abandoned
E/BufferQueueProducer(10041): [SurfaceTexture-0-10041-3] setAsyncMode: BufferQueue has been abandoned
D/Banner Max Android(10041): Constructor
W/AppLovinSdk(10041): [AppLovinSdk] Attempted to load ad before SDK initialization. Please wait until after the SDK has initialized, e.g. AppLovinSdk.initializeSdk(Context, SdkInitializationListener).
D/EGL_emulation(10041): eglMakeCurrent: 0xdfd4eee0: ver 3 0 (tinfo 0xc7506600)
E/flutter (10041): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2215 pos 12: '!_debugDisposed': is not true.
E/flutter (10041): #0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:47:61)
E/flutter (10041): #1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
E/flutter (10041): #2      RenderObject.markNeedsPaint (package:flutter/src/rendering/object.dart:2215:12)
E/flutter (10041): #3      RenderAndroidView._sizePlatformView (package:flutter/src/rendering/platform_view.dart:199:5)
E/flutter (10041): <asynchronous suspension>
E/flutter (10041): 

I used the following code for banner and interstitial Ads respectively:

BannerMaxView((AppLovinAdListener event) =>
          print(event), BannerAdSize.banner, "yyyyyyyyyyyy");

isInterstitialVideoAvailable =
        await FlutterApplovinMax.isInterstitialLoaded(listener);
        if (isInterstitialVideoAvailable) {
          FlutterApplovinMax.showInterstitialVideo((AppLovinAdListener event) =>
              listener(event)).then((value) {
            FlutterApplovinMax.initInterstitialAd("xxxxxxxxxxx");

My question is why is this not working?

Error on Flutter 3

After upgrading to flutter 3.0 I'm unable to build my app, cause this error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':flutter_applovin_max:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR:/Users/macbook/.gradle/caches/transforms-3/0123220a926b91b7b1a7e879eb692300/transformed/core-1.7.0/res/values/values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.

Flutter doctor output:


Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.0, on macOS 11.6 20G165 darwin-x64, locale es-EC)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.67.1)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

• No issues found!

on ad closed getting this error

D/AudioManager( 4439): getStreamVolume isRestricted mode = 0
V/MediaPlayer( 4439): resetDrmState: mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
V/MediaPlayer( 4439): cleanDrmObj: mDrmObj=null mDrmSessionId=null
W/ContentCatcher( 4439): Failed to notify a WebView
W/cr_AwContents( 4439): Application attempted to call on a destroyed WebView
W/cr_AwContents( 4439): java.lang.Throwable
W/cr_AwContents( 4439): at org.chromium.android_webview.AwContents.r(Unknown Source:12)
W/cr_AwContents( 4439): at Ab.loadingStateChanged(Unknown Source:5)
W/cr_AwContents( 4439): at android.os.MessageQueue.nativePollOnce(Native Method)
W/cr_AwContents( 4439): at android.os.MessageQueue.next(MessageQueue.java:336)
W/cr_AwContents( 4439): at android.os.Looper.loop(Looper.java:181)
W/cr_AwContents( 4439): at android.app.ActivityThread.main(ActivityThread.java:7562)
W/cr_AwContents( 4439): at java.lang.reflect.Method.invoke(Native Method)
W/cr_AwContents( 4439): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
W/cr_AwContents( 4439): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)

Laggy and unsmooth

My app (Android & iOS) is very laggy afer implementing the library. I use banner ads. Someone know why or maybe know how to fix it?

FlutterApplovinMax.initInterstitialAd don't have a loaded event

After FlutterApplovinMax.initInterstitialAd a loaded event is not fired.
Even if we use

await FlutterApplovinMax.initInterstitialAd("AD_ID");
bool isInterstitialVideoAvailable = await FlutterApplovinMax.isInterstitialLoaded(listener);

The listener is not triggered, and isInterstitialVideoAvailable is false. After a few seconds if we check again, it's true.

How can we tell if an ad was indeed loaded / failed to load?

it's show error in listner

The argument type 'void Function(AppLovinAdListener)' can't be assigned to the parameter type 'dynamic Function(AppLovinAdListener?)'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.