How am I currently supposed to set up my new Android Studio 2021.1.1 project to use Realm? The install page is useless. Let me show you what I mean.
I am apparently supposed to do this:
But my project-level build.gradle
script, as created by the new project wizard, looks like this:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.1.2' apply false
id 'com.android.library' version '7.1.2' apply false
id 'org.jetbrains.kotlin.android' version '1.6.10' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Where am I supposed to put these things?
Also, the instructions for the application-level build-gradle
file are out of date. For example, instead of apply plugin:
I seem to now be supposed to add id ...
to the plugins
block…? And the syntax now seems to be viewBinding true
instead of viewBinding = true
.
It would be nice if the documentation actually told me correctly what to do…