- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 mopub sdk 4.8.0。正如 documentation 中所说,我包含了以下库:
android-support-v4.jar,
android-support-annotations.jar,
android-support-v7-recyclerview.jar,
mopub-volley-1.1.0.jar
但是当我构建项目时,以下错误被写入 Logcat:
The type org.apache.http.HttpResponse cannot be resolved. It is indirectly referenced from required .class files RequestQueueHttpStack.java /mopub-sdk/src/com/mopub/network line 1 Cannot find the class file for org.apache.http.HttpResponse.
我需要添加哪些库?
最佳答案
org.apache.http 已被弃用一段时间,自 API 级别 23 (Android 6.0) 起,它不再是 Android 的默认依赖项。
它仍然可用,但您需要将依赖项添加到您的 Apps build.grandle 文件中,如下所示:
android {
....
useLibrary 'org.apache.http.legacy'
}
有关它的更多信息可以在这里找到:https://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-apache-http-client
关于java - MoPub Android HttpResponse 无法解析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38922524/
我们使用 InMobi 并切换到 MoPub。 MoPub 的中介仍支持 InMobi。 InMobi 提供了如何集成它的指南 (https://support.inmobi.com/monetize
我已经集成了 MoPub 的完整 SDK,包括将必要的适配器复制到我的 MoPub 模块的源代码中。 但是,当我从 MoPub 请求广告时,我不断收到错误消息: Couldn't locate or
我正在应用程序中集成MOPUB AD。我正在遵循https://www.mopub.com/resources/docs/android-sdk-integration/android-getting
我正在尝试在我的 Android 应用程序上使用 Mopub 设置插页式广告。我已按照 https://github.com/mopub/mopub-android-sdk/wiki/Getting-
我正在尝试在一个 swift 项目中将 MoPub 与 Cocoapods 结合使用。我将 Cocoapods 设置为 use_frameworks 并且我的桥接 header 设置在项目的目标中指向
我正在成功地使用 MoPub 正确显示广告。我在 MoPub 发布商控制台中创建了一个新的广告单元,我用新 ID 更改了当前 ID,但不再显示任何广告。在 logcat 中,我看到以下消息: Ad U
一段时间以来,我一直被一个问题困住,但我无法弄清楚它是什么。问题是我最近更新了 Mopub Android SDK,在此之前,插页式 + 横幅广告(AdMob 和 Millennial Media)都
我对下面的错误感到困惑,不确定错误在哪里,感谢您的帮助。 代码: mopubView = (MoPubView) mainLayout.findViewById(R.id.mopubAdView);
有人知道如何通过 MoPub 中介服务 Adcolony 广告吗?只有这个 MoPub 知道他们在开发者部分发布了什么样的文档。 随处可见信息以及折旧指南。 MoPubRewardedVideos.l
我已经成功地使用 admob 转换广告,但我想,如果可以使用“所有”广告网络,为什么还要使用一个广告网络。所以我在这里使用 mopub。 我真的认为通过集成 mopub sdk 我不需要再与其他 sd
我正在获取实时 Mopub 实时广告,但一直在获取 Mopub 的测试广告,但未加载实时广告。 如何停止mopub的测试广告? 最佳答案 可以在订单下的 moPub 仪表板中禁用演示广告。您可以关闭订
我将 MoPub 与 Android 集成。 https://github.com/mopub/mopub-android-sdk/wiki/Banner-Integration 但是广告没有显示,取
我正在使用 MoPub 原生广告,并使用他们的 MPTableViewAdPlacer 进行了集成。 初始化广告转换器非常简单—— self.adPlacer = [MPTableViewAdPlac
所以我今天决定拆分我的项目(用于精简版/完整版)。我将主要代码打包到库项目中,添加了两个新的 shell 项目,并将它们链接在一起。所有这些都运行良好,我可以毫无问题地运行精简版或完整版。 但是,我在
我正在开发一个 Android 应用程序,并希望在用户退出应用程序时按返回按钮显示一个 mopub 插页式全屏广告。 我试过它创建插页式广告并在 onDestroy 方法中显示它。类似的东西: @Ov
我正在尝试将MoPub集成到我的应用程序中。 我将SDK导入了我的应用程序: compile('com.mopub.sdk.android:mopub:4.4.1@aar') { transi
我正在使用 mopub sdk 4.8.0。正如 documentation 中所说,我包含了以下库: android-support-v4.jar, android-support-annotati
我在 Mopub 中创建了一个帐户,并将必要的代码集成到我的 android 应用程序中以显示横幅广告。在该演示 MoPub 广告开始显示之后。我认为 MoPub 就像发布商和广告网络之间的调解人?如
我想了解为什么我会收到“未找到广告”错误消息。 预计 来自 Facebook Audience Network (FAN) 的原生广告将在 Android RecyclerView Feed 中展示,
我正在尝试使用以下指南将 Chartboost(最新的 SDK)集成到 Mopub 中。 https://github.com/mopub/mopub-android-sdk/wiki/Integra
我是一名优秀的程序员,十分优秀!