Android Question Immediate app crash when using firebase admob with androidX SDK

_marek

Member
Licensed User
Longtime User
Hi guys,
recently I upgraded B4A from 8.80 to 9.90 and to androidX SDK. There were some errors which I managed to solve, but not this one: when using firebase admob with androidX SDK, app immediately crashes after installing to device (even before Sub Service_Create starts). Unfortunately I cannot provide much more info, since in the log I see only these lines:

Logger connected to: WTM9K17208900071
--------- beginning of main
--------- beginning of system

I tested on 2 devices (Android 10 and Android 5) with the same result. Phone screen just briefly blinks, basically nothing is even rendered and app crashes. I have one suspicion. During upgrading process in SDK manager I encountered this error:

Downloading: https://dl.google.com/dl/android/ma...e/firebase-bom/25.5.0/firebase-bom-25.5.0.pom
Downloading: https://dl.google.com/dl/android/ma...e/firebase-bom/25.5.0/firebase-bom-25.5.0.jar

<!DOCTYPE html>
<html lang=en>
<meta charset=utf-8>
<meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
<title>Error 404 (Not Found)!!1</title>
<style>
*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/logos/errorpage/error_logo-150x54.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/logos/errorpage/error_logo-150x54-2x.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/logos/errorpage/error_logo-150x54-2x.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/logos/errorpage/error_logo-150x54-2x.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}
</style>
<a href=//www.google.com/><span id=logo aria-label=Google></span></a>
<p><b>404.</b> <ins>That’s an error.</ins>
<p> <ins>That’s all we know.</ins>


Each time I try to re-download I encounter the same error and com.google.firebase:firebase-bom remains uninstalled. That`s all I know. Can this be a problem? Can somebody verify if it is possible to download this file(s)? (firebase-bom-25.5.0.pom can be downloaded via browser, but firebase-bom-25.5.0.jar really seems to be faulty link)

I have seen few threads with similar problems (crash related to androidX) with people resolving it by reverting to old SDK, but it seems not to be right solution:

Some additional info:
I tested with android platform 28,29,30 - same result.
After upgrading I run jetifier tool succesfully.
Apps without firebase seems to run without any problems.
FirebaseAdMob (version 1.60)
I needed to increase memory size that the dexer process can use as mentioned here:

Is there any other relevant info I can provide?

Thanks in advance.
Marek
 

_marek

Member
Licensed User
Longtime User
mcqueccu, you directed me to the solution. I checked again step 4 in the link: 4. Open Tools - B4A Sdk Manager and update all the recommended items, and it looks like I missed few recommended items (or they appeared later?) and after installing them the problem is fixed. However, I am still not able to update firebase-bom-25.5.0.pom, the error is still the same. Hopefully it will not cause any problems. Thanks.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
During upgrading process in SDK manager I encountered this error:
bom is not a Library. You should not install/download it at all.
 
Upvote 0
Top