我下载了mopub sdk并一直试图关注:
how to add mopub ads library integration with android studio
但我无法导入现有模块。它一直在说"选择要导入的模块"当我选择文件。
如果有人使用android studio 1.0.2和mopub广告可以提供帮助。 也许一步一步的指导会有所帮助。无法为Android工作室找到一个。
答案 0 :(得分:1)
我有类似的问题。我按照here提到的这些步骤进行了操作
修改build.gradle文件后执行同步。然后该模块应出现在您的工作区中。
Gradle Integration
Adding as Source
To include the MoPub SDK as source in your project, copy the SDK source into your project as a module. To do this on OS X and Linux, do the following:
$MY_PROJECT_DIR $ mkdir mopub-sdk
$MY_PROJECT_DIR $ cp -R $MOPUB_DIR/mopub-android-sdk/mopub-sdk 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'
Open your project's build.gradle file and add the MoPub SDK as a dependency:
dependencies {
compile project(':mopub-sdk')
}
答案 1 :(得分:0)
这不是AndroidStudio的错,只需尝试存档的sdk,就可以了。
https://github.com/mopub/mopub-android-sdk/archive/v3.9.0.zip
//抱歉,我没有足够的声望来发布图片