realm-java: Realm Java 5.4.1 crashes at buildtime when using Android Gradle Plugin 2.3.1
Goal
I’m new in Realm. I tried to use Realm plugin version 5.4.1. When I tried to syn gradle dependencies, it’s successful but got error when tried to build my project. I tried snapshoot version as explained here
Expected Results
?
Actual Results
Error:Execution failed for task ‘:app:transformClassesWithRealmTransformerForNormalDebug’.
com.android.build.gradle.BaseExtension.getDefaultConfig()Lcom/android/build/gradle/internal/dsl/DefaultConfig;
Steps & Code to Reproduce
Create a new project and add realm version 5.4.1 plugin in my project gradle config
buildscript {
repositories {
google()
jcenter()
maven {
url 'http://oss.jfrog.org/artifactory/oss-snapshot-local'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
classpath "io.realm:realm-gradle-plugin:5.4.1"
// classpath “io.realm:realm-gradle-plugin:5.5.0-SNAPSHOT” // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }
in my app module gradle
apply plugin: ‘com.android.application’ apply plugin: ‘realm-android’
Code Sample
> Your code here. Bigger samples should ideally be as separate Android Studio project,
> in gists/repositories or privately at help@realm.io)
Version of Realm and tooling
Realm version(s): 5.4.1
Realm sync feature enabled: no
Android Studio version: 3…0.1
Which Android version and device: ?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 27 (15 by maintainers)
implementation ‘io.realm:realm-android-library:3.4.0’