Android studio can't use ACRA v4.8.5

74 views
Skip to first unread message

Mít Tơ Lớp

unread,
Apr 21, 2016, 3:10:38 AM4/21/16
to acra-discuss

Hi.
I'm using Android studio 1.5.1.
When i use:

compile 'ch.acra:acra:4.6.2'

in build.grade, all normal except i can't generate signed APK.
Error:

You probably need to update the library versions.

If i use:

compile 'ch.acra:acra:4.8.5'

in Application class, error: Cannot resolve symbol 'ReportsCrashes', 'ACRA',...

How do i do ?
Thanks for all.


Link from here

William Ferguson

unread,
Apr 24, 2016, 8:27:15 PM4/24/16
to acra-discuss
ACRA-4.6.2 was shipped as a jar and current versions of Gradle appear to assume that a library is an AAR. That's why Gradle can't find  4.6.2. If you want to use 4.6.2 (and I don't recommend that), you need to provide the "jar" specifier for the library.


ACRA-4.8.5 does ship as an AAR. It sounds like Gradle has got itself confused and you may need to clear your Gradle cache.

William
Reply all
Reply to author
Forward
0 new messages