admob 广告Android不显示

时间:2022-08-28 14:10:26

我弄个了ane,iOS上好好的,Android上打死不显示,

最后发现是少在xml里面增加一个配置,百度半天没搜索到。

<android>

        <manifestAdditions><![CDATA[

        <manifest android:installLocation="auto">

       <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

       <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>

       <application>

       <meta-data android:name="com.google.android.gms.version"

        android:value="@integer/google_play_services_version" />

       <activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>

       </application>

       </manifest>

  ]]>

       </manifestAdditions>

</android>