Go to Post Warning: This thread is long like a Ken Leung post........... but about 47 times less interesting and insightful. - Brandon Martus [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-12-2016, 09:59
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 325
fovea1959 will become famous soon enough
FRC Krawler help?

Looking at the FRC Krawler App to evaluate for use in upcoming season.

Got it built and loaded into the emulator, but it stops immediately with this traceback. I suspect we missed some database setup?

Code:
E/AndroidRuntime: FATAL EXCEPTION: main
                  Process: com.team2052.frckrawler.development, PID: 2889
                  java.lang.RuntimeException: Unable to start activity ComponentInfo{com.team2052.frckrawler.development/com.team2052.frckrawler.activities.SetupActivity}: java.lang.IllegalStateException: FirebaseApp with name [DEFAULT] doesn't exist. 
                      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
                      at android.app.ActivityThread.-wrap11(ActivityThread.java)
                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
                      at android.os.Handler.dispatchMessage(Handler.java:102)
                      at android.os.Looper.loop(Looper.java:148)
                      at android.app.ActivityThread.main(ActivityThread.java:5417)
                      at java.lang.reflect.Method.invoke(Native Method)
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
                   Caused by: java.lang.IllegalStateException: FirebaseApp with name [DEFAULT] doesn't exist. 
                      at com.google.firebase.FirebaseApp.getInstance(Unknown Source)
                      at com.google.firebase.FirebaseApp.getInstance(Unknown Source)
                      at com.google.firebase.database.FirebaseDatabase.getInstance(Unknown Source)
                      at com.team2052.frckrawler.activities.SetupActivity.onCreate(SetupActivity.java:53)
                      at android.app.Activity.performCreate(Activity.java:6237)
                      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
                      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
                      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)$@#
                      at android.app.ActivityThread.-wrap11(ActivityThread.java)$@#
                      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)$@#
                      at android.os.Handler.dispatchMessage(Handler.java:102)$@#
                      at android.os.Looper.loop(Looper.java:148)$@#
                      at android.app.ActivityThread.main(ActivityThread.java:5417)$@#
                      at java.lang.reflect.Method.invoke(Native Method)$@#
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)$@#
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)$@#
Reply With Quote
  #2   Spotlight this post!  
Unread 12-12-2016, 10:17
bdaroz's Avatar
bdaroz bdaroz is offline
Programming Mentor
AKA: Brian Rozmierski
FRC #5881 (TVHS Dragons)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Albany, NY
Posts: 366
bdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud of
Re: FRC Krawler help?

We looked at forking Krawler for our use last year but decided against it. Check your Firebase settings, API keys and app name in Firebase.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-12-2016, 13:07
Adam8234's Avatar
Adam8234 Adam8234 is offline
Controls Captain
AKA: Adam Corpstein
FRC #2052 (KnightKrawler)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2014
Location: United States
Posts: 28
Adam8234 will become famous soon enough
Re: FRC Krawler help?

Please double check that you have
Code:
apply plugin: 'com.google.gms.google-services'
At the bottom of the app build.gradle file and that you have two google-services.json for both the '.development' build and the release build.


To get timely fixes and help, we suggest that you fill out an issue on our GitHub page next time.
https://github.com/frc2052/FRC-Krawler/issues
__________________
FRC 2052 KnightKrawler (Controls Captain, Lead Scouting App Developer)
New Brighton, Minnesota
2017 Lake Superior Regional ?, 10,000 Lakes Regional ?
2016 Lake Superior Regional F, 10,000 Lakes Regional W, 10,000 Lakes Chairman's Award W, Carson Division W, Einstein QF, Minnesota State Championship W
2015 Lake Superior Regional F, 10,000 Lakes Regional F, Galileo Division QF, Minnesota State Championship F
2014 Lake Superior Regional W, 10,000 Lakes Regional W, Galileo Division QF, Minnesota State Championship W
Reply With Quote
  #4   Spotlight this post!  
Unread 17-12-2016, 16:41
19lmyers 19lmyers is offline
Student
AKA: Luke Myers
FRC #0980 (Thunderbots)
Team Role: Scout
 
Join Date: Dec 2015
Rookie Year: 2016
Location: USA
Posts: 26
19lmyers has a spectacular aura about19lmyers has a spectacular aura about
Try using an emulator with Google Play Services enabled. It's failing because it can't initialize Firebase, a Google app analytics platform.

What's the specific reason you had to compile it from source anyway? It is also available on the Google Play Store...
__________________
FRC Team 980 Thunderbots
Programmer
Scouting Lead
Lead developer of ThunderScout
Reply With Quote
  #5   Spotlight this post!  
Unread 17-12-2016, 17:27
Ty Tremblay's Avatar
Ty Tremblay Ty Tremblay is offline
Robotics Engineer
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Alton NH
Posts: 808
Ty Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond repute
Re: FRC Krawler help?

Quote:
Originally Posted by 19lmyers View Post
Try using an emulator with Google Play Services enabled. It's failing because it can't initialize Firebase, a Google app analytics platform.

What's the specific reason you had to compile it from source anyway? It is also available on the Google Play Store...
It's open source. Maybe they're helping development............
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 17-12-2016, 21:34
19lmyers 19lmyers is offline
Student
AKA: Luke Myers
FRC #0980 (Thunderbots)
Team Role: Scout
 
Join Date: Dec 2015
Rookie Year: 2016
Location: USA
Posts: 26
19lmyers has a spectacular aura about19lmyers has a spectacular aura about
Re: FRC Krawler help?

Quote:
Originally Posted by Ty Tremblay View Post
It's open source. Maybe they're helping development............
Not necessarily. To my knowledge, some teams require more than just what a scouting app provides out of the box and wish to edit the source themselves. However, most would generally be fine with the stock app off the Play Store.
Reply With Quote
  #7   Spotlight this post!  
Unread 17-12-2016, 22:30
Ty Tremblay's Avatar
Ty Tremblay Ty Tremblay is offline
Robotics Engineer
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Alton NH
Posts: 808
Ty Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond repute
Re: FRC Krawler help?

Quote:
Originally Posted by 19lmyers View Post
What's the specific reason you had to compile it from source anyway? It is also available on the Google Play Store...
Quote:
Originally Posted by 19lmyers View Post
To my knowledge, some teams require more than just what a scouting app provides out of the box and wish to edit the source themselves. However, most would generally be fine with the stock app off the Play Store.
Looks like you answered your question then.
__________________
Reply With Quote
  #8   Spotlight this post!  
Unread 18-12-2016, 14:39
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,112
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: FRC Krawler help?

Quote:
Originally Posted by Adam8234 View Post
Please double check that you have
Code:
apply plugin: 'com.google.gms.google-services'
At the bottom of the app build.gradle file and that you have two google-services.json for both the '.development' build and the release build.


To get timely fixes and help, we suggest that you fill out an issue on our GitHub page next time.
https://github.com/frc2052/FRC-Krawler/issues
It bothers me that the new firebase stuff requires that those files be present or it won't even initialize the library (I'd rather it fail softer). That was a pain to sort out after the TBA for Android CI builds stopped working... I eventually made it fail softly on its own.

@OP - if you aren't sure where to get the google-service.json file, you'll need to create a Firebase project and configure it to work with your build keys. This page should be able to help.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:37.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi