Android Question Trying out the Firebase lib

davidvidasoft

Member
Licensed User
Hello everyone. I was following the guide made by @DonManfred: https://www.b4x.com/android/forum/t...imension-in-authentication.87580/#post-554935 and could not get the example to run. It seems like I am missing some files, my guess is the res.FirebaseUI folder, I don't know where to locate it once downloaded. If someone could help me.

This folder is mentioned in my #Region Activity Attributes like this: #AdditionalRes: ..\res.FirebaseUI. The error I get when trying to run the project is not very clear:
B4X:
B4A Version: 7.80
Parsing code.    (0.00s)
Compiling code.    Error
Referencia a objeto no establecida como instancia de un objeto.

What can I do to fix this?
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Anser

Well-Known Member
Licensed User
Longtime User
I too get the same error.

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

Anser

Well-Known Member
Licensed User
Longtime User
Sorry. I thought that
You should ALWAYS(!!!) create a NEW Thread for each question.
Sorry. I thought that if I create a new post for the same error/question as reported in this post (which is active), it would be a duplication.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
You issue is maybe another.

Additionally you NEVER should post your question to an exiting thread; Instead you should create a new Thread for YOUR Issue giving us as much Informations as you can. You can use this informations in this thread to give us the infos we need to help. See #2
 
Upvote 0

davidvidasoft

Member
Licensed User
to make sure:
you are using the new B4A SDKManager and have setup the IDE to use this new SDK?
Yes, I am. It's a fresh new B4A installation and I made sure to install all the recommended items from the SDK Manager too. Also, when I first tried to run the FirebaseUIEx project the compiler was making warnings about I had not installed some libraries (like in the case of Anser) so I went there and installed the necessary libs. The only thing I was lacking of was CustomTab, I just installed it but the problem persists. :(

One more thing, where should I put the res.FirebaseUI folder that is mentioned in the AdditionalRes directive? And do I have to set the folder to be Only-Read? I am kind of a newbie with these things, sorry.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

davidvidasoft

Member
Licensed User
In the same folder as your project file... the .b4a file and the Objects and Files folder.
I thought of that, I initially pasted in all the possible directories just to make sure :D but it still does not work (I already cleaned up the mess BTW). Also, I tried the first suggestion you made (from the corwin42 post) but nothing. I get the same error as in my first post:

RXStqpt.png


What else should I try?
 
Upvote 0

davidvidasoft

Member
Licensed User
After commenting it the editor warns me about not assigned values in the variables used and won't compile with the same error. I guess I will just freeze that part until later. Thank you for your time anyway.
 
Upvote 0

davidvidasoft

Member
Licensed User
@Erel, you are right. I found it out after commenting every section on my code until I finally reached the manifest. I misslocated the json file but now it's in the appropiate folder. That error stopped appearing but now the problem is other :S

B4X:
B4A Version: 7.80
Parsing code.    (0.00s)
Compiling code.    (0.88s)
Compiling layouts code.    (0.06s)
Organizing libraries.    (7.70s)
Generating R file.    (3.68s)
Compiling debugger engine code.    (1.27s)
Compiling generated Java code.    (4.72s)
Convert byte code - optimized dex.    (2.65s)
Packaging files.    (4.06s)
Copying libraries resources    (0.00s)
Signing package file (private key).    Error

jarsigner error: java.security.InvalidKeyException: The security strength of SHA-1 digest algorithm is not sufficient for this key size
 
Last edited:
Upvote 0
Top