我在logcat中收到以下内容,这可能是导致未加载Inmobi广告的原因
VFY: replacing opcode 0x22 at 0x0010
VFY: dead code 0x000d-000f in Lcom/inmobi/commons/internal/ActivityRecognitionManager;.a (Landroid/content/Context;)V
VFY: dead code 0x0012-002c in Lcom/inmobi/commons/internal/ActivityRecognitionManager;.a (Landroid/content/Context;)V
Could not find method com.google.android.gms.location.ActivityRecognitionResult.hasResult, referenced from method com.inmobi.commons.internal.ActivityRecognitionManager.a
VFY: unable to resolve static method 7313: Lcom/google/android/gms/location/ActivityRecognitionResult;.hasResult (Landroid/content/Intent;)Z
VFY: replacing opcode 0x71 at 0x0000
VFY: dead code 0x0003-000f in Lcom/inmobi/commons/internal/ActivityRecognitionManager;.a (Landroid/content/Intent;)V
Could not find class 'com.google.android.gms.location.DetectedActivity', referenced from method com.inmobi.commons.internal.ActivityRecognitionManager.getDetectedActivity
VFY: unable to resolve check-cast 1125 (Lcom/google/android/gms/location/DetectedActivity;) in Lcom/inmobi/commons/internal/ActivityRecognitionManager;
VFY: replacing opcode 0x1f at 0x0009
VFY: dead code 0x000b-000f in Lcom/inmobi/commons/internal/ActivityRecognitionManager;.getDetectedActivity ()I
2): clipservice: android.sec.clipboard.ClipboardExManager@4062a668
Could not find method android.os.Vibrator.hasVibrator, referenced from method com.inmobi.re.controller.JSUtilityController.c
VFY: unable to resolve virtual method 908: Landroid/os/Vibrator;.hasVibrator ()Z
VFY: replacing opcode 0x6e at 0x01fc
Could not find method com.inmobi.re.container.IMWebView.isHardwareAccelerated, referenced from method com.inmobi.re.controller.JSUtilityController.c
VFY: unable to resolve virtual method 9322: Lcom/inmobi/re/container/IMWebView;.isHardwareAccelerated ()Z
VFY: replacing opcode 0x6e at 0x0217
VFY: dead code 0x01ff-0201 in Lcom/inmobi/re/controller/JSUtilityController;.c (Ljava/lang/String;)Z
VFY: dead code 0x021a-0228 in Lcom/inmobi/re/controller/JSUtilityController;.c (Ljava/lang/String;)Z
VFY: dead code 0x0234-0235 in Lcom/inmobi/re/controller/JSUtilityController;.c (Ljava/lang/String;)Z
我如何进行整合????
我在代码中修改了什么?
在Menifest文件中添加了以下内容
机器人:名字= “com.inmobi.commons.analytics.androidsdk.IMAdTrackerReceiver” 机器人:启用=“真” 机器人:导出= “真” >
答案 0 :(得分:5)
尝试以下步骤:
从http://www.inmobi.com/support/integration/23817448/22051163/android-sdk-integration-guide/
下载最新的inmobi sdk下载适用于admob中介的最新inmobi适配器
将这些罐子添加到libs文件夹中,并按照前面提到的方法执行admob集成步骤。
<activity android:name="com.inmobi.androidsdk.IMBrowserActivity"
android:configChanges="keyboardHidden|orientation|keyboard|smallestScreenSize|screenSize"
android:hardwareAccelerated="true" />
<receiver
android:name="com.inmobi.commons.analytics.androidsdk.IMAdTrackerReceiver"
android:enabled="true"
android:exported="true" >
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
如果您仍然遇到问题,请检查您的inmobi应用程序/属性ID是否处于活动状态。如果您的appid未激活,您仍可以按照此链接test inmobi integration
测试您的整合答案 1 :(得分:0)
感谢Gurnetkaur, 我发现了这个问题。
所有配置文件中的所有内容都是正确的。 问题与APP ID有关。因为我没有在市场上发布APP,也没有任何有效的URL。 Inmobi不会向正在开发的应用发送广告。必须有有效的市场网址。
在这种情况下,有两种解决方案可以测试广告。 1.使用Inmobi添加测试设备 2.从inmobi获取测试应用程序ID(我有一个)
感谢您的回答