1

Android SDK を使用して、facebook(FAN) から AudienceNetwork インタースティシャル広告を実装しました。

7回目か8回目の広告が表示されるまではうまくいきます。その後、アプリケーションがクラッシュし、android.os.TransactionTooLargeException がスローされます。

ログは次のとおりです。

08-25 14:57:37.441: E/JavaBinder(910): !!! FAILED BINDER TRANSACTION !!!
08-25 14:57:37.451: W/InputDispatcher(910): channel ~ Consumer closed input channel or an error occurred.  events=0x9
08-25 14:57:37.451: E/InputDispatcher(910): channel ~ Channel is unrecoverably broken and will be disposed!
08-25 14:57:37.451: E/libprocessgroup(910): failed to kill 1 processes for processgroup 28261
08-25 14:57:37.451: I/WindowState(910): WIN DEATH: Window{34e42ccc u0 com.test.test/com.test.test.UnityPlayerActivity}
08-25 14:57:37.451: W/InputDispatcher(910): Attempted to unregister already unregistered input channel
08-25 14:57:37.451: I/WindowState(910): WIN DEATH: Window{3f95474c u0 SurfaceView}
08-25 14:57:37.451: W/ActivityManager(910): Exception in new application when starting activity com.test.test/com.facebook.ads.InterstitialAdActivity
08-25 14:57:37.451: W/ActivityManager(910): android.os.TransactionTooLargeException
08-25 14:57:37.451: W/ActivityManager(910):     at android.os.BinderProxy.transactNative(Native Method)
08-25 14:57:37.451: W/ActivityManager(910):     at android.os.BinderProxy.transact(Binder.java:496)
08-25 14:57:37.451: W/ActivityManager(910):     at android.app.ApplicationThreadProxy.scheduleLaunchActivity(ApplicationThreadNative.java:854)
08-25 14:57:37.451: W/ActivityManager(910):     at com.android.server.am.ActivityStackSupervisor.realStartActivityLocked(ActivityStackSupervisor.java:1597)
08-25 14:57:37.451: W/ActivityManager(910):     at com.android.server.am.ActivityStackSupervisor.attachApplicationLocked(ActivityStackSupervisor.java:850)
08-25 14:57:37.451: W/ActivityManager(910):     at com.android.server.am.ActivityManagerService.attachApplicationLocked(ActivityManagerService.java:7540)
08-25 14:57:37.451: W/ActivityManager(910):     at com.android.server.am.ActivityManagerService.attachApplication(ActivityManagerService.java:7607)
08-25 14:57:37.451: W/ActivityManager(910):     at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:481)
08-25 14:57:37.451: W/ActivityManager(910):     at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2965)
08-25 14:57:37.451: W/ActivityManager(910):     at android.os.Binder.execTransact(Binder.java:446)
08-25 14:57:37.451: A/ActivityManager(910): Exception thrown launching activities in ProcessRecord{3f10b395 30801:com.test.test/u0a405}
08-25 14:57:37.451: A/ActivityManager(910): android.os.TransactionTooLargeException
08-25 14:57:37.451: A/ActivityManager(910):     at android.os.BinderProxy.transactNative(Native Method)
08-25 14:57:37.451: A/ActivityManager(910):     at android.os.BinderProxy.transact(Binder.java:496)
08-25 14:57:37.451: A/ActivityManager(910):     at android.app.ApplicationThreadProxy.scheduleLaunchActivity(ApplicationThreadNative.java:854)
08-25 14:57:37.451: A/ActivityManager(910):     at com.android.server.am.ActivityStackSupervisor.realStartActivityLocked(ActivityStackSupervisor.java:1597)
08-25 14:57:37.451: A/ActivityManager(910):     at com.android.server.am.ActivityStackSupervisor.attachApplicationLocked(ActivityStackSupervisor.java:850)
08-25 14:57:37.451: A/ActivityManager(910):     at com.android.server.am.ActivityManagerService.attachApplicationLocked(ActivityManagerService.java:7540)
08-25 14:57:37.451: A/ActivityManager(910):     at com.android.server.am.ActivityManagerService.attachApplication(ActivityManagerService.java:7607)
08-25 14:57:37.451: A/ActivityManager(910):     at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:481)
08-25 14:57:37.451: A/ActivityManager(910):     at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2965)
08-25 14:57:37.451: A/ActivityManager(910):     at android.os.Binder.execTransact(Binder.java:446)
08-25 14:57:37.451: I/ActivityManager(910): Killing 30801:com.test.test/u0a405 (adj 0): error during init
08-25 14:57:37.461: W/ActivityManager(910): Force removing ActivityRecord{2b621023 u0 com.test.test/com.facebook.ads.InterstitialAdActivity t149}: app died, no saved state

何か提案はありますか?

4

2 に答える 2

0

主な問題は、呼び出してビュー、アクティビティ、またはその他のコンテナーに渡すコンテンツのサイズです。まず、約 100KB の小さなコンテンツでテストして問題を正確に把握してから、着信コンテンツのサイズを縮小する方法を検索できます。

于 2015-08-25T13:55:25.800 に答える