Interstitial Admob ads: “IllegalStateException: Only fullscreen activities can request orientation”

前端 未结 7 799
故里飘歌
故里飘歌 2020-11-28 22:26

Background

I have an app with Admob SDK used in it, to show Interstitial ads (full screen ads).

Reccently Google has updated the SDK, along with many other

7条回答
  •  情话喂你
    2020-11-28 22:36

    This issue will Automatically be fixed when ad mob will update their ads sdk for API 27 their ads dependency do not support API 27 so due to this issue occurring.

     compile 'com.google.android.gms:play-services-ads:11.8.0'
    

    Only full screen activities can request orientation, this is due to ads meta data in your mainfest file,admob should update their sdk for 27 version.

    if you have set target sdk version 27 then you would get this error, actually android updating sdk very fast, and some update admob left behind to do ,for integration with android sdk, so admob have pending this update, they should do this very soon ,Its not on developer side issue, if you wants to escape from this crash then set your sdk to 26.

提交回复
热议问题