Mopub Integration for Android Studio

2019-06-28 04:57发布

As of this question I have been unable to find any resources or help on how to integrate the Mopub library project in Android Studio as everything is still only documented for Eclipse.

I used Facebook's article on integrating their library in Android Studio as a guide but still have issues. For reference here's their article: https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android-using-android-studio/3.0/

Does anyone have a step-by-step process for integrating MoPub in Android Studio?

3条回答
在下西门庆
2楼-- · 2019-06-28 05:33

As mentioned on the Readme file of the project on Github. You can add dependency in your Android project's gradle file.

Just add the following lines in the build.gradle file.

    repositories {
    maven { url "http://minakov.github.io/mopub-sdk-android-aar" }
    }

    dependencies {
        compile 'com.mopub.mobileads:mopub-android:+@aar'
    }

After this just sync your project and you are good to go.

查看更多
神经病院院长
3楼-- · 2019-06-28 05:34

I solved it, just add the mopub sdk as a new module. You can see Details in this post.

查看更多
别忘想泡老子
4楼-- · 2019-06-28 05:40

I've recently found this.. https://github.com/minakov/mopub-sdk-android-aar/tree/master

Following the instructions on the repo readme page I was able to setup the mopub SDK as a dependency in my Android Studio project.

Hope this helps someone

查看更多
登录 后发表回答