Hello, I have a simple app from my news site, I found it on GitHub some time ago and I edited it.
But it did not work on some devices (Android 5.1 up) when it was the fix I discovered that with the latest updates of Android Studio it is no longer possible to use the version of realm I used
classpath 'io.realm: realm-gradle-plugin: 1.2.0'
because android-apt is obsolete and in this version (1.2.0) it is used.
I tried upgrading to version 4.3.3 of Realm, but the builder used the first time it 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 tailoring the above code into new ways
* I am an adventurer in the Android development world, I have no training in the area any help is welcome