gradle i imported
mopub SDK i refereed this link [ref link][1] first one
jCenter AAR after that i added code in
manifest.xml`但是仍未加载横幅我收到错误
D/MoPub: Attempting to invoke custom event: com.mopub.mobileads.GooglePlayServicesBanner
D/MoPub: Couldn't locate or instantiate custom event: com.mopub.mobileads.GooglePlayServicesBanner.
V/MoPub: MoPubErrorCode: Unable to find Native Network or Custom Event adapter
我在谷歌搜索我得到的解决方案添加如此The banner and interstitial adapters (e.g. GooglePlayServicesBanner.java and GooglePlayServicesInterstitial.java) should be placed in the com/mopub/mobileads folder in the MoPub SDK
但我正在使用android studio gradle
lib,所以如何使用它可以帮助我。
答案 0 :(得分:0)
您无需将文件放在com / mopub / mobileads中。您可以将其放在包含名称com.mopub.mobileads的src文件夹中。 (确保已将文件移至应用项目,而不是'extras'文件夹中)