我在 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
- 我在 admob 中介展示位置有“admob”、“inmobi”、“Mmedia”广告网络
- 我的应用程序尚未上线,我正在测试各种广告网络 vai admob 中介
- 我禁用了除“inmobi”之外的所有中介广告网络。它没有显示添加,我可以上面提到的 logcat 日志
我是怎么整合的???
- 好吧,我在各个广告网络网站中创建了登录ID并注册了应用程序并获得了APP ID
- 在中介的相应广告网络中使用了该APP ID
- 我的应用程序主要活动正在使用中介 ID
- 如果我只选择“admob”并禁用其他人,admob 可以工作并显示广告,但 Inmobi 没有广告
我在代码中修改了什么?
- 在 libs 文件夹中添加了 2 个 jar 文件(inmobi 适配器和 inmobi sdk)
在 Menifest 文件中添加了以下内容
android:name="com.inmobi.commons.analytics.androidsdk.IMAdTrackerReceiver" android:enabled="true" android:exported="true">