我在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我是怎么整合的?
我在代码中修改了什么??
发布于 2013-11-21 11:13:29
尝试以下步骤:
1. Download the latest inmobi adapter for admob mediation
2. Add these jars to the libs folder and follow the admob integration steps as you have mentioned earlier.
3. Ad the following in your application manifest:
。
<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不是活动的,您仍然可以通过以下链接测试inmobi集成来测试您的集成
发布于 2013-11-22 10:59:19
谢谢古奈考尔,我发现了这个问题。
所有配置文件中的所有内容都是正确的。问题是与应用it。因为我没有在市场上发布的应用程序,它没有任何有效的网址。Inmobi不向development.there下的应用程序发送广告必须是有效的市场网址。
在这种情况下,有两个测试广告的解决方案。1.使用Inmobi 2添加测试设备。从inmobi获取测试应用程序ID (我从他们那里得到一个)
谢谢你的回答
https://stackoverflow.com/questions/20068687
复制相似问题