使用acra,以下代码无法编译并显示错误
DEFAULT_REPORT_FIELDS无法解析或不是字段
private Map<String, String> remap(Map<ReportField, String> report) {
ReportField[] fields = ACRA.getConfig().customReportContent();
if (fields.length == 0) {
fields = ACRA.DEFAULT_REPORT_FIELDS;
}
final Map<String, String> finalReport = new HashMap<String, String>(
report.size());
for (ReportField field : fields) {
if (mMapping == null || mMapping.get(field) == null) {
finalReport.put(field.toString(), report.get(field));
} else {
finalReport.put(mMapping.get(field), report.get(field));
}
}
return finalReport;
}
答案 0 :(得分:0)
那必须是旧的(呃)版本。试试这个:
ACRAConstants.DEFAULT_REPORT_FIELDS