Android Question Admob Crash Interstitial and Banner

Douglas Farias

Expert
Licensed User
Longtime User
Hi all.
i m related on google play console some crash on the apps.
The cause its the admob.

On my devices i have no problem, on google play i see android 4.1 to 4.4





My google play Services on SDK Manager its REV 29 (the last i think).
On my devices android 5.0+ are normal, no errors.

I m make a test with android ADV and android 4.2.2.
On the emulator i see the error.

The crash its with admob banner and interstitial too.

Here the log with interstitial only.

Code used
B4X:
       mwAdInterstitial.Initialize("mwadi","ca-app-pub-xxxxxxxxxxxxxxxxxx")
        mwAdInterstitial.LoadAd
Crash on mwAdInterstitial.LoadAd

and here the admob banner


Code used
B4X:
        Adview1.Initialize2("Ad", "ca-app-pub-xxxxxxxxxxxxxxxx", Adview1.SIZE_SMART_BANNER)
        Dim height As Int
        If GetDeviceLayoutValues.ApproximateScreenSize < 6 Then
        If 100%x > 100%y Then height = 32dip Else height = 50dip 'SMARTPHONES
        Else
        height = 90dip 'TABLETS
        End If
        Activity.AddView(Adview1, 0dip, 100%y - height, 100%x, height)
        Adview1.Color = Colors.White
        Adview1.LoadAd


how can i fix this errors?
Note: Try and Catch its ignored by this errors, banner and interstitial.
no way to make this works on android 4+

thx all
 

Douglas Farias

Expert
Licensed User
Longtime User
Fixed, copied the the lib android-support-v4.jar from C:\Android\extras\android\support\v4 to my internal libs folder.
i m already have this android-support-v4.jar but replaced and works now
 
Upvote 0

CyclopDroid

Well-Known Member
Licensed User
Longtime User
Hi Dooglas Farias.
I've the some proble in my old game.
I want modify it, but i received your identical message of error.
I accidentally did the opposite, reversing copy folders.
Where can I get the old version of the V4? I downloaded a version and copied in both folders, but it keeps giving me seprate the same mistake.
Thank you.
PS: My versiom or google play services, now, is v37
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…