Search code examples
androidsdkmopub

Can't add MoPub SDK in my project


When I add MoPub SDK in my project I get much errors. enter image description here

This is fragments from my build.gradle

dependencies {
...
compile project(':mopub-sdk')
...

}

and settings.gradle

include ':mopub-sdk'

Solution

  • You have integrated the full bundle of the MoPub SDK which contains the Millennial Media adapter but not the Millennial Media SDK.

    You can resolve this issue by removing the Millennial Media adapters or by integrating the SDK.

    If you decide to keep the adapter and integrate Millennial, you will have to add the dependency for the third party ad network adapter as well.

    The adapters are named: MillennialBanner.java MillennialInterstitial.java

    To integrate the Millennial Media, include the SDK.

    Here is the link under 2. to integrate the Millennial Media SDK from the MoPub documentation on integrating third party ad networks. https://github.com/mopub/mopub-android-sdk/wiki/Integrating-Third-Party-Ad-Networks#2-link-the-third-party-sdks