Firebase. Runtime error in Android Studio of latest ODK Collect_App. (Downloaded from Github this morning)

Hi there
I am using latest Android Studio, latest Gradle and latest collect_app code. (19 March 2020)
Build is working
When I click debug with my android phone or Emulator, it installs successfully and then stops
The error in Debug window is:

E/AndroidRuntime: FATAL EXCEPTION: pool-14-thread-2
Process: org.odk.collect.android, PID: 22613
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.firebase.perf.internal.zzv.zzd(boolean)' on a null object reference
at com.google.firebase.perf.internal.zzf.zze(com.google.firebase:firebase-perf@@19.0.4:170)
at com.google.firebase.perf.internal.zzi.run(com.google.firebase:firebase-perf@@19.0.4:2)
at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:784)
E/AndroidRuntime: FATAL EXCEPTION: pool-14-thread-1
Process: org.odk.collect.android, PID: 22613
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
at com.google.android.gms.internal.firebase-perf.zzby.zzr(com.google.firebase:firebase-perf@@19.0.4:16)
at com.google.android.gms.internal.firebase-perf.zzby.zzc(com.google.firebase:firebase-perf@@19.0.4:44)
at com.google.android.gms.internal.firebase-perf.zzby$zza.zzu(com.google.firebase:firebase-perf@@19.0.4:19)
at com.google.firebase.perf.internal.zzf.zzbt(com.google.firebase:firebase-perf@@19.0.4:42)
at com.google.firebase.perf.internal.zzf.zzc(com.google.firebase:firebase-perf@@19.0.4:195)
at com.google.firebase.perf.internal.zze.run(com.google.firebase:firebase-perf@@19.0.4:2)
at java.util.concurrent.ThreadPoolExecutor.processTask(ThreadPoolExecutor.java:1187)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:784)
I/Process: Sending signal. PID: 22613 SIG: 9
Disconnected from the target VM, address: 'localhost:8610', transport: 'socket'


My expectation is that the latest code would work
Any advice appreciated

Hi @smilingdassie

Could you try editing this line:
-keep class com.google.android.gms.internal.firebase-perf.** { *; }
to
-keep class com.google.android.gms.internal.** { *; }

In which file is this located please?

Replaced the entries in proguardrules.txt

Rebuilt, Rerun

Same Fatal error as above

Hmmm strange... you can remove firebase perf it's not something you need just get rid of the lines added in this pr https://github.com/opendatakit/collect/commit/bf5baeac326337d3b47892fbe13dbf18159c6929

Thank you that worked !
except I also needed to comment out:
// FirebasePerformance {
// instrumentationEnabled false
// }
in the build.gradle collect_app file
because it complained obviously

Hi, the GIT link provided is throwing Page Error Notfound with 404 code.
I am also facing this problem, could you please help me to resolve it? I want to fix it.
The GIT link is expired, please someone ping it here with the solution.

Follow the instructions at https://github.com/getodk/collect/#setting-up-your-development-environment