Unable To Integrate ACRA

221 views
Skip to first unread message

Michael

unread,
Jan 7, 2012, 4:29:10 PM1/7/12
to acra-discuss
I have followed the getting started instructions
http://code.google.com/p/acra/wiki/BasicSetup and been successful up
to:

Above the declaration of the MyApplication class, add the
@ReportsCrashes annotation with your Google Docs formKey as a
parameter.

At this point, I have the imports working:
import org.acra.*;
import org.acra.annotation.*;

but I get an error on @ReportsCrashes(formKey = "My Google Doc Key
Here")
stating "ReportsCrashes cannot be resolved to a type" as well as "The
attribute formKey is undefined for the annotation type ReportsCrashes"

What I have done differently from the guide up to this point is that
the application subclass is not in the package root; instead it was
integrated into an existing application subclass in a package with a
few other classes. I can't, however, see why that would make a
difference,

I have also tried downloading and copying a fresh .jar file into the
lib folder just in case the original file had been corrupted in the
download.

Any ideas?

Michael

Michael

unread,
Jan 7, 2012, 5:45:23 PM1/7/12
to acra-discuss
Everything is now working.

I'm not sure what fixed it, but I did the following
- Removed the .jar file from the project
- Removed references in the build path
- Restarted Eclipse

What was odd was that the sources jar was somehow on the build path.
As well, when I removed the acra-4.2.2.jar, I was getting errors that
the javadoc file was necessary and could not be found.

In any case, it now works.

Michael

On Jan 7, 4:29 pm, Michael <michaell...@gmail.com> wrote:
> I have followed the getting started instructionshttp://code.google.com/p/acra/wiki/BasicSetupand been successful up

Oleg Vaskevich

unread,
May 29, 2012, 2:47:21 PM5/29/12
to acra-d...@googlegroups.com
I had a similar issue. Reason was that I added the javadoc JAR instead of the JAR in the build directory. The Application subclass does not have to be in the project root as long as you properly reference it in the AndroidManifest.xml file (i.e.: ".ui.core.MyApplication")
Reply all
Reply to author
Forward
0 new messages