I don't know how to run the realm example project

Asked 2 years ago, Updated 2 years ago, 47 views

https://github.com/realm/realm-java I'm going to run the examples here I downloaded it from Android Studio I opened it It doesn't work

I put the whole folder in The run button is disabled in the Android studio.

I only put the introexample folder

There's an error like this. I'm just trying to compare codes, and I'm trying to run them, and I don't know what to do. <

realm android

2022-09-22 11:53

2 Answers

If the purpose is to run the Realm example, it would be better to build a copy of the example source code (src/main) after you create a new Android project. Add the bottom part to build.gradle.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath "io.realm:realm-gradle-plugin:2.0.0"
    }
}


2022-09-22 11:53

According to the link below, you need to run ./gradlew assembly for the first time to generate the files (including the realm-gradle-plugin of the error screen you uploaded). I think the priority will be to execute the above command first. Please refer to the document for other related information.


2022-09-22 11:53

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.