C#-Xamarin.Forms AdMob“缺少AdActivity”

C#-Xamarin.Forms AdMob“缺少AdActivity”,第1张

概述我在Xamarin.Forms项目中实施AdMob时遇到问题.因此,当我运行android应用程序时,将显示在输出中:01-2216:53:17.351W/Ads(3529):MissingAdActivitywithandroid:configChangesinAndroidManifest.xml.Youmusthavethefollowingdeclarationwithinthe<application>

我在Xamarin.Forms项目中实施AdMob时遇到问题.

因此,当我运行android应用程序时,将显示在输出中:

01-22 16:53:17.351 W/Ads (3529): Missing AdActivity with androID:configChanges in AndroIDManifest.xml. You must have the following declaration within the <application> element:<activity androID:name="com.Google.androID.gms.ads.AdActivity"androID:configChanges="keyboard|keyboardHIDden|orIEntation|screenLayout|uiMode|screenSize|smallestScreenSize" />

但是我的清单中有这行..:

<manifest xmlns:androID="http://schemas.androID.com/apk/res/androID" androID:installLocation="auto">    <uses-sdk androID:minSdkVersion="15" />    <uses-permission androID:name="androID.permission.ACCESS_NETWORK_STATE" />    <uses-permission androID:name="androID.permission.INTERNET" />    <activity androID:name="com.Google.androID.gms.ads.AdActivity" androID:configChanges="keyboard|keyboardHIDden|orIEntation|screenLayout|uiMode|screenSize|smallestScreenSize" />

  

当我打开包含广告的页面时,该页面显示:

这是怎么了

解决方法:

<活动>标记应位于< application>标签

<application>    <activity androID:name="com.Google.androID.gms.ads.AdActivity" androID:configChanges="keyboard|keyboardHIDden|orIEntation|screenLayout|uiMode|screenSize|smallestScreenSize" /></application>
总结

以上是内存溢出为你收集整理的C#-Xamarin.Forms AdMob“缺少AdActivity”全部内容,希望文章能够帮你解决C#-Xamarin.Forms AdMob“缺少AdActivity”所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1091180.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-27
下一篇2022-05-27

发表评论

登录后才能评论

评论列表(0条)

    保存