Android的工作室不让我进口SDK [英] Android Studio won't let me import SDK

查看:174
本文介绍了Android的工作室不让我进口SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图按照<一个href="http://stackoverflow.com/questions/21405809/how-to-add-mopub-ads-library-integration-with-android-studio">this帖子导入mopub SDK到我的应用程序,但Android的工作室是困难的。

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

我解压的SDK,并到项目结构,选择导入新的模块。当我选择了解压的文件夹,完成按钮是灰色的,并且有一个错误说选择模块导入

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'

我使用的是Android Studio的版本号0.8.6。 以下是错误菜单的截图

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

推荐答案

我有同样的问题,所以我不得不手动安装它。

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

首先,解压缩下载的文件,然后解压缩后的 mopub-SDK 文件夹拷贝到你的项目目录。

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

接下来,打开项目的settings.gradle文件,并确保MoPub SDK是作为一个模块:

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

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

打开应用程序的build.gradle文件(不是你的主要项目之一),添加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')
}

这些指令是基于那些在 mopub github上发现的。

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

这篇关于Android的工作室不让我进口SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆