Android Question b4a v6.0 firebase error after manifest

tufanv

Expert
Licensed User
Longtime User
Hello

When i add *firebase base* to manifest file i get:

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

How can i fix it ? ty
 

tufanv

Expert
Licensed User
Longtime User
I've tested your project and didn't get this error.

Can you enable the IDE logs and post them: https://www.b4x.com/android/forum/threads/intermittent-error-message.9047/#post-50478 ?
here:

B4X:
B4A version: 6.00 BETA #1
.Net version: 4.0.30319.34209
B4XClassifer created
B4XErrorTagger created
B4XClassifer created
B4XErrorTagger created
*** no reuse ***
*** no reuse ***
Gui: 986
Gui: 76
Gui: 59
Gui: 67
Gui: 53
B4XClassifer created
B4XErrorTagger created
B4XClassifer created
B4XErrorTagger created
B4XClassifer created
B4XErrorTagger created
B4XClassifer created
B4XErrorTagger created
B4XClassifer created
B4XErrorTagger created
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
Gui: 330
ExitCode: 1
Output:
jarsigner: unable to open jar file: bin\temp.ap_

Error:

jarsigner: unable to open jar file: bin\temp.ap_

ManagerSpecialLibraries: building jar - C:\Users\tufan\Dropbox\yeni airline android\Objects\bin\extra\opt.jar
Compilation task: 293.0167
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at Newtonsoft.Json.Linq.JContainer.GetItem(Int32 index)
   at ae.a(String A_0, String A_1)
   at ae.b(String A_0)
   at ae.c(String A_0)
   at ae.a(fq A_0, a9 A_1, String A_2)
   at v.b()
   at a7.a(Object A_0)
Compilation task: 526.0301
Gui: 69
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
For some reason the api_key field in the json file is empty. Try to download the file again (it is under project settings) and see whether the field is still empty.

It should look like:
B4X:
"api_key": [
  {
  "current_key": "AIzaSyBxxxxxxwc-q-Smx3bjd9EZfPA8GaE"
  }
  ],
we posted at the same moment. I already did that and now it works fine =) Thanks very much for your help.
 
Upvote 0
Top