Every time I try to retrieve data from my database, I get
com.google.firebase.database.DatabaseException: Found two getters or fields with conflicting case sensitivity for property: n
for any of my fields that are a single letter. Googling this issue gives 0 results and I can find no case incongruities in my code. I don't know if this is a bug in Firebase or if I have to do something special for any fields with names 1 character long.
Here is the rest of the error report if it makes a difference (the line of my code which it references is a simple
params = dataSnapshot.getValue(Parameters.class);
which works everywhere else:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: osu.gd_prototype, PID: 11345
com.google.firebase.database.DatabaseException: Found two getters or fields with conflicting case sensitivity for property: n
at com.google.android.gms.internal.zzaix$zza.zziw(Unknown Source)
at com.google.android.gms.internal.zzaix$zza.<init>(Unknown Source)
at com.google.android.gms.internal.zzaix.zzj(Unknown Source)
at com.google.android.gms.internal.zzaix.zzd(Unknown Source)
at com.google.android.gms.internal.zzaix.zzb(Unknown Source)
at com.google.android.gms.internal.zzaix.zza(Unknown Source)
at com.google.firebase.database.DataSnapshot.getValue(Unknown Source)
at osu.gd_prototype.DataSend$1.onDataChange(DataSend.java:107)
at com.google.android.gms.internal.zzafp.zza(Unknown Source)
at com.google.android.gms.internal.zzagp.zzSu(Unknown Source)
at com.google.android.gms.internal.zzags$1.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Here is the code for parameters with the relevant offending getters and setters of the fields which throw the error:
public class Parameters {
public int K;
public double L;
public int D;
public int N;
public Parameters() {
}
public double getL(){
return L;
}
public void setL(double lVal){
L = lVal;
}
public int getK(){
return K;
}
public void setK(int kVal){
K = kVal;
}
public int getD(){
return D;
}
public void setD(int dVal){
D = dVal;
}
public int getN(){
return N;
}
public void setN(int nVal){
N = nVal;
}
}