When I eat something to write to the Realm crashes. I did everything in the tutorial
java.lang.IllegalArgumentException: A non-null RealmConfiguration must be provided
code from Application:
public class App extends Application { @Override public void onCreate() { super.onCreate(); Realm.init(this); Realm.setDefaultConfiguration(new RealmConfiguration .Builder() .deleteRealmIfMigrationNeeded() .name(Realm.DEFAULT_REALM_NAME) .modules(new ShopingListModule()) .build()); }} Flies out on the line in the presenter when I want to get or write something to the database:
Realm realm = Realm.getInstance(Realm.getDefaultConfiguration()); I did not find information on the Internet. Who faced how to decide?