how to add mopub ads library integration with android studio
ads, android, android-studio, mopub
Solution
Maybe Android studio has updated, I couldn't solve it according to abaar or pyus13's answer.
This answer is based on Android Studio 0.6.1.
Unzip the `mopub-sdk.zip` that you downloaded
Open project structure(File -> Project Structure) in Android Studio
Click the '+' button on the upper left to add a new module
You can see the New Module wizzard, choose Import Existing Project and click next
Choose the mopub-sdk folder you just unzipped
Click next and finish. Now you can see that Android Studio import the mopub-sdk into your project. And a `settings.gradle` file has been added into your project
Open `settings.gradle`, and add a line `include ':'`
Open the `build.gradle` file of your project, in the dependencies entry, add `compile project('mopubsdk')` (mopubsdk is the project name you just added)
Open project structure again, you can see the `mopubsdk` module on the left, click on it, then choose `Dependencies` tab on the top, change `com.android.support:support-v4:+`'s scope from `Compile` to `Provided`
Now it's done. It works for me.
Problem
I am trying to add the MoPub SDK to my application. I try to import and add the library in Android Studio, but I do not see any ad in my app. I used Eclipse to add the library originally, but I am trying Android Studio because it is the new Google-supported tool now. How do I add MoPub's SDK to my app using Android Studio?