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
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:
After Using AndroidX Firebase Push Notification Cannot Work
The APP Crash When Try To Run. Didn't Have and Error Information. I Search The Forum, The Firebase Push Notification Implementation Already Many Year. Actually It Always Work Before I Upgrade to AndroidX. Do Any Friend Using Firebase Push Notification With Android X ?
www.b4x.com
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:
Convert byte code - optimized dex. Error - Need Help Pls :(
Hello, My application was going OK, then I had more Modules, more Layouts, when I finished adding what I wanted, I tried to compile and this error starts to appear and I can't compile this any more, anyone can help me out pls ?, thanks in advance. Compiling code...
www.b4x.com
Is there any other relevant info I can provide?
Thanks in advance.
Marek