Android Question SOLVED Beginning of crash

gregorio_adrian_gimenez

Active Member
Licensed User
Longtime User
Hello everyone
I did an update from the Android -28 to Android-30 platform. When I did this, it asked me to update the Firebase maven in the SDK manager, but then the application stopped working. It reloaded the android -28 platform but failing. I managed to generate an error log in Android, the result is this. Can someone tell me how to solve it?

Logger connected to: ecd60c6
--------- beginning of system
--------- beginning of crash
--------- beginning of main
1.jpeg


2.jpeg


regards
 

gregorio_adrian_gimenez

Active Member
Licensed User
Longtime User
Hi Erel. Goog Morning, I could not use the B4A log because it did not generate it, only this is displayed in the log
Logger connected to: ecd60c6
--------- beginning of system
--------- beginning of crash
--------- beginning of main

The error is generated as soon as you try to open the application, it is not possible to debug it
I had already downloaded the Android SDK according to the instructions, so I don't know how to solve this problem, I did it 3 times just in case.

What can I try to try to solve it? I'm lost
regards
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
I had already downloaded the Android SDK according to the instructions,
I assume you used Erel's B4A SDK download from the product page. Did you use 7-Zip or another program to unzip the SDK and NOT File Explorer which can mangle the paths when unzipping? Have you checked the paths according to the instructions?
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
That doesn't look like a clean install from the B4A product page. Erel's SDK resources_9_20.zip doesn't have an android-28 folder under platforms, only android-30. Neither does it have the .temp, emulator and patcher folders! Most importantly does it work? If it doesn't then do an install from scratch into a different folder and point B4A to that new one.
 
Upvote 0

gregorio_adrian_gimenez

Active Member
Licensed User
Longtime User
i use this in manifest

CreateResourceFromFile (Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)
CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)
CreateResourceFromFile(Macro, FirebaseAdMob.FirebaseAds)

after update add this CreateResourceFromFile(Macro, FirebaseAnalytics.Crashlytics)

The app worked fine until I upgrade to Android 30
regards
 
Upvote 0

gregorio_adrian_gimenez

Active Member
Licensed User
Longtime User
Erel.
Your question led me to discover the error, for some reason I had this code in the manifest, which began to cause the error when I performed the update.
By removing it it worked without problem.
A thousand apologies and thanks for everyone's help.

B4X:
ddApplicationText(
<service android:name="com.google.firebase.components.ComponentDiscoveryService" >
            <meta-data
                android:name="com.google.firebase.components:com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar"
                android:value="com.google.firebase.components.ComponentRegistrar" />
            <meta-data
                android:name="com.google.firebase.components:com.google.firebase.iid.Registrar"
                android:value="com.google.firebase.components.ComponentRegistrar" />
             <meta-data
                android:name="com.google.firebase.components:com.google.firebase.auth.FirebaseAuthRegistrar"
                android:value="com.google.firebase.components.ComponentRegistrar" />
            <meta-data
                android:name="com.google.firebase.components:com.google.firebase.storage.StorageRegistrar"
                android:value="com.google.firebase.components.ComponentRegistrar" />

            <meta-data android:name="com.google.firebase.components:com.google.firebase.firestore.FirestoreRegistrar"
            android:value="com.google.firebase.components.ComponentRegistrar"/>


            <meta-data
                    android:name="com.google.firebase.components:com.google.firebase.database.DatabaseRegistrar"
                    android:value="com.google.firebase.components.ComponentRegistrar"/>
          
            <meta-data
                android:name="com.google.firebase.components:com.google.firebase.messaging.FirebaseMessagingRegistrar"
                android:value="com.google.firebase.components.ComponentRegistrar" />
            </service>

)
Regards
 
Upvote 0
Top