새소식

mobile/🦖 Android

[solved] Must be called on the main UI thread

  • -
728x90

Problem

Must be called on the main UI thread

 

Solution

fun btnRewardVideo() {
	runOnUiThread {
		loadRewardedVideoAd()
	}
}

reference : stackoverflow.com/questions/28501787/admob-interstitial-and-error-isloaded-must-be-called-on-the-main-ui-thread

반응형
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.