Android Studio won't let me import SDK

前端 未结 3 837
南旧
南旧 2020-12-10 19:35

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

相关标签:
3条回答
  • 2020-12-10 19:48

    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.

    0 讨论(0)
  • 2020-12-10 19:52

    It's not fault of AndroidStudio, just try archived sdk, it works

    https://github.com/mopub/mopub-android-sdk/archive/v3.9.0.zip

    from https://github.com/mopub/mopub-android-sdk/releases

    // sorry I don't enough reputation to post image

    0 讨论(0)
  • 2020-12-10 20:08

    In eclipse, if we create a project which is having library projects inside our project, then

    enter image description here

    we cannot import this project as module in Android studio. This may be the issue

    enter image description here

    0 讨论(0)
提交回复
热议问题