From 9053b4e0dc60ac0cf45f9a18257c2a83c4e7adff Mon Sep 17 00:00:00 2001 From: William Ferguson Date: Wed, 3 Feb 2016 23:11:51 +1000 Subject: [PATCH] Looking for BuildConfig class in the package defined in AndroidManifest, not the package of he Application class. These are generally the same location but don't need to be. --- src/main/java/org/acra/collector/CrashReportDataFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/acra/collector/CrashReportDataFactory.java b/src/main/java/org/acra/collector/CrashReportDataFactory.java index 30867b46bb..8e977b050f 100644 --- a/src/main/java/org/acra/collector/CrashReportDataFactory.java +++ b/src/main/java/org/acra/collector/CrashReportDataFactory.java @@ -571,7 +571,7 @@ private Class getBuildConfigClass() throws ClassNotFoundException { return configuredBuildConfig; } - final String className = context.getClass().getPackage().getName() + ".BuildConfig"; + final String className = context.getPackageName() + ".BuildConfig"; try { return Class.forName(className); } catch (ClassNotFoundException e) {