Fix empty stacktrace in bug report
ACRA has to be initialized after MultiDex https://github.com/ACRA/acra/issues/619 https://github.com/ACRA/acra/wiki/Troubleshooting-Guide#legacy-multidex
This commit is contained in:
parent
d6d8c7830c
commit
1b9f5989ef
2 changed files with 11 additions and 8 deletions
|
|
@ -77,7 +77,6 @@ public class App extends Application {
|
|||
@Override
|
||||
protected void attachBaseContext(final Context base) {
|
||||
super.attachBaseContext(base);
|
||||
|
||||
initACRA();
|
||||
}
|
||||
|
||||
|
|
@ -200,7 +199,11 @@ public class App extends Application {
|
|||
.build();
|
||||
}
|
||||
|
||||
private void initACRA() {
|
||||
/**
|
||||
* Called in {@link #attachBaseContext(Context)} after calling the {@code super} method.
|
||||
* Should be overridden if MultiDex is enabled, since it has to be initialized before ACRA.
|
||||
*/
|
||||
protected void initACRA() {
|
||||
try {
|
||||
final CoreConfiguration acraConfig = new CoreConfigurationBuilder(this)
|
||||
.setReportSenderFactoryClasses(REPORT_SENDER_FACTORY_CLASSES)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue