- Home /
Question by
johan90joseph · Apr 26, 2019 at 02:42 AM ·
android
Getting null reference exception when using Admob Reward Ad in unity.
I have implemented Admob reward ad in my unity android game. No errors and I build the apk and run it using Android Studio. I have successfully shown the video ad, but when I try to close the ad, the app crashes and closes. Th following error is shown in the logcat.
There is no line umber shown. How will we debug this?
E/Unity: NullReferenceException: Object reference not set to an instance of an object
at Player.Update () [0x00000] in <filename unknown>:0
(Filename: Line: -1)
Comment
Answer by rakeshkingkhan · Jun 09, 2019 at 12:19 PM
add line in void start(){
this.rewardBasedVideo = RewardBasedVideoAd.Instance;
Answer by LaurNTU · Mar 23 at 09:40 PM
hello, i am having a very similar issue. Did you fix this by any chance?
Your answer
Follow this Question
Related Questions
2D Camera (Android, Iphone) 1 Answer
How to record android internal audio? 0 Answers
how can i integrate applovin and chartboost for android 0 Answers
Cant build android game 2 Answers