问题
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?
回答1:
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
回答2:
I solved it, just add the mopub sdk as a new module. You can see Details in this post.
回答3:
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.
来源:https://stackoverflow.com/questions/20131793/mopub-integration-for-android-studio