-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ACRA service crashes on start up on Android 19 and earlier. #354
Comments
Does ACRA crash or does the ACRA SenderService? There is no reason for the ACRA class to be available on one device but not the other if both instances are from the same APK. Ie Did you build it twice and deploy 32 different versions? I can't help you with Gradle config questions. IMHO Gradle is a nightmare that packs in all the things from Ant that Maven2 cut loose from 12 years ago. ACRA is packaged as an aar. So you need to configure your project to consume an aar library. I don;t think that means bunging it into a lib/libs folder, but as I said, Gradle has issues. |
It's specifically the SenderService crashing. Same APK on both devices. I'm using a completely vanilla Android Studio project setup, nothing funky. Here's the full stacktrace. FATAL EXCEPTION: IntentService[ACRA SenderService] |
That is *really weird. Do you get the same on a 4.4.2 emulator? |
Yes, the same error occurs both on the emulator and a real device (Galaxy S4 Mini Android 4.4.2). No such error occurs on a real or emulated Nexus 5 (Android M). When I downgrade to ACRA 4.7.0 the error goes away, so this seems to be a regression in 4.8.0. Although the actual error reporting fails in 4.7.0 with a 400 error, so it's not a great workaround :) |
OK, if it fails on an emulator then I can reproduce and test. Just in case it is something specific to your project could you please create a cut down project showing the issue and post it to Github. I'll look at it tonight. |
Here's a "minimum broken example": All I did was to create a new project containing a blank activity and follow the exact instructions in the ACRA wiki to install and initialize it. |
I've narrowed it down just a little... the problem seems to be with API levels below 21. An emulated Nexus 5 on API 21+ works fine. An emulated Nexus 5 on API 19 or below crashes. |
OK, I have replicated it. It's really weird. |
OK. Think I have it. It'll take me a day or two. |
I also got the same problem , its not working in android API level 19(4.4.2 AND 4.4.4), but working fine on api 21( 5.0) , I haven't implemented any senderService , so that may be the problem ,but its working fine on some devices , why ? IN google analytics results this is the problem ClassNotFoundException (@BaseDexClassLoader:findClass:56) {IntentService[ACRA SenderService]} ClassNotFoundException (@BaseDexClassLoader:findClass:67) {IntentService[ACRA SenderService]} |
This is the code i had written, giving crash report at starting on android 4.4.4 and i have not included senderservice in Androidmanifest.xml file @ReportsCrashes( ) public class AppController extends Application {
} |
@danepowell Could you please check out master and confirm that it works for you too. |
master works now, thanks! Will you be rolling a new release for this or do we need to use master for a while? |
I plan on rolling out a new release tonight :-) |
4.81 has been released. Give it 2 hours to propagate through Maven Central. |
Woot! I see it in Maven. Thanks! |
thanks sir, its working fine. Its really apprecialble , with in less time you fixed the bug, Great job sir, this shows the ACRA' s importance. |
@william-ferguson-au thats so quick, thank you very much. |
I recently set up ACRA reporting to Cloudant as detailed in the wiki. It works great on a Nexus 5 running Android 6, but on a Galaxy S4 Mini running Android 4.4.2, the ACRA service crashes on application startup with this error:
I have no idea why this class would be missing on one version of Android but not another, do you? I have these includes in my application class, and I'm pulling in ch.acra:acra:4.8.0 via Gradle/Maven:
One thing I noticed is that my Gradle / Maven config have this line (the Android studio default):
It strikes me that the ACRA documentation advises to add the .aar file, and the error above makes reference to a "lib" directory, not a "libs" directory... could either of these be related?
The text was updated successfully, but these errors were encountered: