我试图按照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.
相关推荐
最新文章