我在iOS 11中一直收到这些警告。在装有iOS 10的设备上运行相同的应用程序时,不会产生任何此类警告。
Main Thread Checker: UI API called on a background thread: -[UIApplication keyWindow]
PID: 4945, TID: 148126, Thread name: (none), Queue name: com.google.admob.sdk-core-controller, QoS: 0
Main Thread Checker: UI API called on a background thread
好的,如果我包括.jar的adMob sdk,它将与google服务API相冲突,并且应用程序不会编译,因为以下错误:
Unable to execute dex: Multiple dex files define Lcom/google/ads/AdRequest$ErrorCode;
如果导出中不包括adMob .jar,它将崩溃运行时,因为应用程序找不到广告所需的类,它会在布局文件中显示以下消息:
The following classes could not be instantiated:
- com.google.ads.AdView
现在怎么办?当我更新到API 19之后,它就
我正在将新的AdMob集成到我的应用程序中。文档说明需要API 9或更高版本。现在问题来了:
在调试模式下,AdMob在任何支持的设备上都能正常工作。当我应用Proguard时,运行API-9的设备停止显示广告,而较新的API仍然正确显示广告。在API-9上,在Logcat中显示以下内容:
11-08 00:32:03.523: W/Ads(24719): Could not get info for ad overlay.
鉴于这个问题只出现在Proguard之后,我认为这是由于一个支持类被混淆造成的。不幸的是,AdMob的集成指南中没有关于Proguard的说明,我的搜索努力只得到了一些建
自上周以来,我的应用程序在产品版本中由于一些admob错误而出现致命错误
Fatal Exception: java.lang.NullPointerException: Attempt to read from field 'com.google.android.gms.ads.internal.overlay.n com.google.android.gms.ads.internal.overlay.AdOverlayInfoParcel.c' on a null object reference
at com.google.android.gms.ads.i
我检测到我的一些活动在发布时被屏蔽了。因此,我在一个新项目中编写了该代码:
public class LayoutTestActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
long now = System.currentTimeMillis();
ne
我有一个与google Play Store关联的Google帐户,但对于该google帐户,Adsense未获批准。我没有找到任何方法来停用或取消未经批准的Adsense帐户。我想创建一个新的google帐户,然后是Admob,然后是Adsense帐户。
如何将新创建的admob帐户的广告用于我现有的Google Play Store帐户?
使用adding new dependency flutter_native_admob后出现此错误 Duplicate class com.google.firebase.analytics.connector.internal.zzd found in modules classes.jar (com.google.android.gms:play-services-measurement-api:17.1.0) and classes.jar (com.google.firebase:firebase-measurement-connector-impl:17.0.2) 在添加这个依赖
我不知道发生了什么,我的代码没有任何更改,一天后,我现在没有显示Admob广告(以前工作得无懈可击),我得到了这个错误:
E/Ads(775): JS: Uncaught ReferenceError: AFMA_getSdkConstants is not defined (http://media.admob.com/:1)
我没有使用任何代码来启动广告,只使用XML,如下所示:
<com.google.ads.AdView
android:layout_width="wrap_content"
android:layout_height="w
我试图使用Admob在我的Android应用程序中添加广告,但遇到了障碍。Admob表示,它需要从logcat获得以下内容
E/Ads (26043): The android:configChanges value of the com.google.ads.AdActivity must include uiMode.
E/Ads (26043): The android:configChanges value of the com.google.ads.AdActivity must include screenSize.
E/Ads (26043): The a