应用停止尝试播放视频广告

时间:2018-01-06 10:26:22

标签: java android kotlin

我的APP有视频广告部分,用户可以在早上广告按下播放按钮时看到来自admob的广告,一切都运行良好但是现在当我点击同一个按钮应用程序崩溃时我在下面是详细信息我来自logcat:

FATAL EXCEPTION: main
        Process: eelam.ellalan.rechargemafia, PID: 8570
        java.lang.RuntimeException: Unable to start activity ComponentInfo{eelam.ellalan.rechargemafia/com.google.android.gms.ads.AdActivity}: java.lang.IllegalStateException: Only fullscreen activities can request orientation
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
        at android.app.ActivityThread.-wrap11(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
        at android.os.Handler.dispatchMessage(Handler.java:105)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6541)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
        Caused by: java.lang.IllegalStateException: Only fullscreen activities can request orientation
        at android.os.Parcel.readException(Parcel.java:1950)
        at android.os.Parcel.readException(Parcel.java:1888)
        at android.app.IActivityManager$Stub$Proxy.setRequestedOrientation(IActivityManager.java:5675)
        at android.app.Activity.setRequestedOrientation(Activity.java:5739)
        at com.google.android.gms.ads.internal.overlay.d.a(:com.google.android.gms.DynamiteModulesA@11951470:182)
        at com.google.android.gms.ads.internal.overlay.d.b(:com.google.android.gms.DynamiteModulesA@11951470:216)
        at com.google.android.gms.ads.internal.overlay.d.a(:com.google.android.gms.DynamiteModulesA@11951470:76)
        at com.google.android.gms.ads.internal.overlay.client.c.onTransact(:com.google.android.gms.DynamiteModulesA@11951470:8)
        at android.os.Binder.transact(Binder.java:604)
        at com.google.android.gms.internal.zzed.zzb(Unknown Source:7)
        at com.google.android.gms.internal.zzwl.onCreate(Unknown Source:8)
        at com.google.android.gms.ads.AdActivity.onCreate(Unknown Source:28)
        at android.app.Activity.performCreate(Activity.java:6975)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
        at android.app.ActivityThread.-wrap11(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
        at android.os.Handler.dispatchMessage(Handler.java:105)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6541)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
        01-06 15:51:34.704 1324-1324/? E/hw-IPCThreadState: binder thread pool (1 threads) starved for 218 ms

0 个答案:

没有答案