Open jberkel opened 13 years ago
I'm affected by this problem.
Here is an excerpt of the problem:
import org.acra.{ACRA, ReportingInteractionMode}
import org.acra.annotation.ReportsCrashes
@ReportsCrashes(
formKey = "",
formUri = "http://...",
httpMethod = HttpSender.Method.PUT, reportType = HttpSender.Type.JSON,
formUriBasicAuthLogin = "myuser", formUriBasicAuthPassword = "mypassword",
mode = ReportingInteractionMode.TOAST, forceCloseDialogAfterToast = false, resToastText = R.id.problem
)
class AplicacionInc extends android.app.Application {
}
The error I get is this:
Error:(22, 92) annotation argument needs to be a constant; found: R.id.problem
mode = ReportingInteractionMode.TOAST, forceCloseDialogAfterToast = false, resToastText = R.id.problem
Creating a val for "R.id.problem" doesn't help.
When adding annotation to a scala class which refer to java constants you get the following error:
This is related to https://issues.scala-lang.org/browse/SI-2764. A workaround for now is to add the following to the project definition:
We could make this the default for the plugin, but it will slow things down.