Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio won't let me import SDK

I was trying to follow this post to import the mopub SDK into my app, however Android Studio is being difficult.

I unzipped the SDK, and went to Project Structure to select import a New Module. When I chose the unzipped folder, the Finish button is grayed out, and there is an error saying 'Select Modules to import'

I am using Android Studio version 0.8.6. Here is a screenshot of the error menu

like image 750
Dtroll MC Avatar asked Nov 04 '14 12:11

Dtroll MC


1 Answers

I had the same issue so I had to install it manually.

First, unzip the downloaded file and then copy the unzipped mopub-sdk folder into your project directory.

Next, open your project's settings.gradle file and make sure the MoPub SDK is included as a module:

include ':app', ':mopub-sdk'

Open your app's build.gradle file (not your main project one) and add the MoPub SDK as a dependency:

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

These instructions are based of those found on the mopub github.

like image 123
Joel Avatar answered Oct 06 '22 01:10

Joel