0
Hello, I have a simple app from my news site, I found it on Github some time ago and edited it.
However it stopped working on some devices (Android 5.1 up) when it was the fix found that with the latest updates of Android Studio is no longer possible to use the version of Remake I used
classpath 'io.Realm:Realm-Gradle-plugin:1.2.0'
since android-apt has become obsolete and in this version (1.2.0) the same is used.
I tried to upgrade to version 4.3.3 of Realm but the constructor used for the first time changed.
@Override
public void onCreate() {
super.onCreate();
mInstance = this;
// init realm database
RealmConfiguration realmConfiguration = new RealmConfiguration.Builder(this)
.name("wordpress.realm")
.schemaVersion(0)
.deleteRealmIfMigrationNeeded()
.build();
Realm.setDefaultConfiguration(realmConfiguration);
So I need help adjusting the code above in the new ways
*I am an adventurer in the world of Android development, I have no training in the area all help is welcome