package com.google.android.gms.internal.p002firebaseauthapi; import android.util.Log; import java.util.ArrayList; import java.util.List; import org.json.JSONArray; import org.json.JSONException; /* loaded from: classes2.dex */ public final class zzabk { public static zzvg zza(Exception exc, String str, String str2) { Log.e(str, "Failed to parse " + str + " for string [" + str2 + "] with exception: " + exc.getMessage()); return new zzvg("Failed to parse " + str + " for string [" + str2 + "]", exc); } public static List zzb(JSONArray jSONArray) throws JSONException { ArrayList arrayList = new ArrayList(); if (jSONArray != null && jSONArray.length() != 0) { for (int i = 0; i < jSONArray.length(); i++) { arrayList.add(jSONArray.getString(i)); } } return arrayList; } }