Android Question Unable to compile Firebase UI Auth Sample

Anser

Well-Known Member
Licensed User
Longtime User
Hi,

I am referring to the Lib provided by our friend DonManfred from this post https://www.b4x.com/android/forum/t...imension-in-authentication.87580/#post-554935

I am just experimenting. I have downloaded everything provided in the above post to my Additional Lib folders

When I open the sample project provided by DonManfred, I get the following error message.

Error.png


I do not know from where to get the following additional jar files.
com.android.support.constraint:constraint-layout
com.android.support.constraint:constraint-layout-solver
com.google.firebase:firebase-auth
com.android.support:customtabs

The rest of the .aar files were available in the FirebaseUIaar.zip available in the post where the library was shared.

When I try to compile the project I get the following error message.

B4A Version: 7.80
Parsing code. (0.00s)
Compiling code. Error
Object reference not set to an instance of an object.


I tried to do the SDK Manager setup on my already existing Android folder wich was used by me for all my B4A projects untill B4A 7.8

Just not to mess with things, I did the SDK Manager setup once again in a new folder. I created a new folder named "AndroidNew" and then did the setup process as described here https://www.b4x.com/b4a.html.

Any help will be appreciated
 

DonManfred

Expert
Licensed User
Longtime User
com.android.support:customtabs
Ok, let´s start with this one. I know it is one of the Maven repos which is installed by the B4A SDKManager

sdkmanager029.png


com.android.support.constraint:constraint-layout
com.android.support.constraint:constraint-layout-solver

Same here...

sdkmanager030.png


Please check your SDKManager if these are installed. If not; install them

If it is important: I am using V3.11 of the SDKManager
 
Upvote 0

Anser

Well-Known Member
Licensed User
Longtime User
Hi

Verifying my SDK Manager,

com.android.support:customtabs (Google Maven) 27.0.2 was already installed
com.google.firebase:firebase-auth (Google Maven) 11.8.0 was already installed
Solver for constraintLayout 1.0.2 Version 1 was NOT INSTALLED, but I installed now as per your suggestion.

Unfortunately, adding the above did not resolve the issue. When I open the project, the IDE displays the same error ie "An error occurred. Maven artifact not found: com.android.support.constraint/constraint-layout".

Further I noticed that the following are available in the NOT INSTALLED list in the SDK manager. I installed the following too

com.android.support.constraint:constraint-layout (Google Maven) Version 1.0.2
com.android.support.constraint:constraint-layout-solver (Google Maven) Version 1.0.2

After installing the above 2, ONE OF THE ERROR's reported in my Post #1 has vanished ie the error message displayed by the IDE, when I open the project "An error occurred. Maven artifact not found: com.android.support.constraint/constraint-layout".

Unfortunately, I am still not able to compile the project. I get the same error ie

B4A Version: 7.80
Parsing code. (0.00s)
Compiling code. Error
Object reference not set to an instance of an object.


Any help will be appreciated
 
Last edited:
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Erel answered this in another thread about the same lib.

This is a bug in B4A 7.80. It shows this error message instead of the actual error when there is a problem in the manifest editor.
My guess is that the google-services.json file is missing or the package name doesn't match the package name set in the json file.
 
Upvote 0

Anser

Well-Known Member
Licensed User
Longtime User
Yes, I was drafting a reply.

The reason for the error was as follows.
  1. There was no google-services.json file in the project folder.
  2. The package name was different
Now I am able to compile.

Thank you
 
Upvote 0
Top