Compilation error after upgrading from ACRA 4.5 to ACRA 4.6

I updated the ACRA library used by my application from 4.5.0 to 4.6.0, but I get a compilation error for formKey which was used to work with 4.5.

Here is the announcement:

@ReportsCrashes(
  formKey = "",
  formUri = "",
  socketTimeout = 10000,
  httpMethod = org.acra.sender.HttpSender.Method.POST,
  mode = ReportingInteractionMode.SILENT,
  resDialogText = R.string.crash_dialog_text,
  resDialogIcon = android.R.drawable.ic_dialog_info,
  resDialogTitle = R.string.crash_dialog_title,
  resDialogCommentPrompt = R.string.crash_dialog_comment_prompt,
)

Here is the error:

Error: (19, 17) error: cannot find symbol method formKey ()

I tried to remove formKey, as it is no longer used, from the declaration, but it creates a new error after I did this.

+4
source share
1 answer

After checking the ACRA ChangeLog, it seems that the ACRA error is in 4.6.0

PR # 233 PR # 235 BuildConfig Gradle . NB , BuildConfig Java, AndroidManifest manifest: package. 'buildConfigClass' ACRA.

dependecies 4.6.2, . formKey .

dependencies {
  compile 'ch.acra:acra:4.6.2'
}


@ReportsCrashes(
  formUri = "",
  socketTimeout = 10000,
  httpMethod = org.acra.sender.HttpSender.Method.POST,
  mode = ReportingInteractionMode.SILENT,
  resDialogText = R.string.crash_dialog_text,
  resDialogIcon = android.R.drawable.ic_dialog_info,
  resDialogTitle = R.string.crash_dialog_title,
  resDialogCommentPrompt = R.string.crash_dialog_comment_prompt,
)
+7

All Articles