Android Question [solved] Problem integrating Crashlytics

DonManfred

Expert
Licensed User
Longtime User
I setup my app to use Crashlytics
Make sure to use B4A v10.2+ with the recommended SDK: https://www.b4x.com/b4a.html
Run B4A Sdk Manager, search for cct and make sure that the installed version is 2.3.1.
I am running B4A 11 and a fresh SDK (two ZIPs).
If i run the SDK-Manager it already shows a 2.3.3 installed.
I removed the files from HDD and adapted installed-components and remove that line.

After starting the SDK Manager again i now get the suggested 2.3.1 version and installed it.

The app compiles fine and crash as expected
B4X:
dim test as int = "123"

But i am waiting for about 2 hours now. The crash does not appear in the console and i also see in the console that firebase is wating for my app to integrate the SDK?

 
Last edited:
Solution
Solved.

Something get lost the last time i recreated the project.

- I deleted the project and the app completely.
- and recreated a new project. And added the app new to this one.
- It now works.

But i also removed the Appcompat Searchview and replaced it by a panel with an editfield.
At least it now works.

josejad

Expert
Licensed User
Longtime User
Hi DonManfred:

I think I had the same issue when I did it but I can't remember how I solved it.

Maybe this thread can help you

 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Maybe this thread can help you
Unfortunately no.

I also tried to create a complete new project in Firebaseconsole, added the app incl. sha1 hash.
The app compiles fine and crash on the expected line.

But still i do not see any difference in the Console.
Still waiting for the SDK to integrate.
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
The above was a try to get an old app working with Crashlytics.




I now also tried to create a new app to test.
I added the app to my Firebaseproject, downloaded the json file. Setup Crashlytics as per instructions.

The app compiles fine and also crash on the expected line
B4X:
Dim i As Int = "aaa"
The same happens here. In Firebaseconsole i always see a spinning


EDIT: With the new and fresh app it works! :-(
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Make sure that #VersionName attribute is not empty. It will not work with an empty value.
?
I already adapted it:
B4X:
#VersionName: FBDN Service 1324

It was empty first, right. But even with a VersionName set it does not work with my old project. Guess the problem is somewhere else.
Maybe Appcompat, maybe another component/library i use.

The new testapp i created this morning works. Both have a VersionName set.
The testapp is like a empty project with just Crashlytics implemented.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
In the unfilteres log of the - non working - app i found this: Maybe it´s relevant!?
Time-out while trying to bind c7a75a7 #u0a184/-1064882246 de.fbdn.service/com.google.android.datatransport.runtime.scheduling.jobscheduling.JobInfoSchedulerService, dropping.


Also found in the unfiltered Log.

Looks to me like the Problem is with AppCompat or something using it.

 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Solved.

Something get lost the last time i recreated the project.

- I deleted the project and the app completely.
- and recreated a new project. And added the app new to this one.
- It now works.

But i also removed the Appcompat Searchview and replaced it by a panel with an editfield.
At least it now works.
 
Upvote 1
Solution
Cookies are required to use this site. You must accept them to continue using the site. Learn more…