InMobi / sdk-sample-code-android

This repository contains InMobi Android SDK sample code for different ad-formats, which publishers can use to incorporate in their apps — Edit
Apache License 2.0
38 stars 43 forks source link

AndroidRuntimeException: requestFeature() must be called before adding content #102

Open ShawnLin013 opened 1 year ago

ShawnLin013 commented 1 year ago

implementation 'com.inmobi.monetization:inmobi-ads:10.0.7'

Fatal Exception: android.util.AndroidRuntimeException: requestFeature() must be called before adding content
       at com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:374)
       at android.app.Activity.requestWindowFeature(Activity.java:3934)
       at com.inmobi.media.ct.a(InMobiActivityAdViewHandler.java:95)
       at com.inmobi.ads.rendering.InMobiAdActivity.onNewIntent(InMobiAdActivity.java:5132)
       at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1239)
       at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1251)
       at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:3375)
       at android.app.ActivityThread.performNewIntents(ActivityThread.java:3387)
       at android.app.ActivityThread.handleNewIntent(ActivityThread.java:3396)
       at android.app.ActivityThread.access$1800(ActivityThread.java:211)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1777)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:145)
       at android.app.ActivityThread.main(ActivityThread.java:6946)
       at java.lang.reflect.Method.invoke(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:372)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)