App Bundle, split APKs and LinkageError
Troubleshoot or avoid crashes when using ObjectBox db and Android App Bundle or due to buggy devices. Google-certified devices prevent this crash.
App Bundle and split APKs
Using the Play Core library to check for missing splits
implementation 'com.google.android.play:core:1.7.3'public class App extends Application {
@Override
public void onCreate() {
if (MissingSplitsManagerFactory.create(this).disableAppIfMissingRequiredSplits()) {
return; // Skip app initialization.
}
super.onCreate();
// ...
}
}Alternative: Catch exception and inform users
Alternative: turn off splitting by ABI
Buggy devices (API 22 or lower)
Enable ReLinker debug log
Last updated
Was this helpful?