vicpinm / Kotlin-Realm-Extensions

Kotlin extensions to simplify Realm API.
Apache License 2.0
535 stars 53 forks source link

Duplicate files copied in APK #18

Closed JimClermonts closed 7 years ago

JimClermonts commented 7 years ago

Adding compile "com.github.vicpinm:krealmextensions:1.1.5" to build.gradle and then I get below error:

Error:Execution failed for task ':app:transformNativeLibsWithMergeJniLibsForAcceptanceDebug'.
> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK lib/x86/librealm-jni.so
    File1: /Users/jimclermonts/.android/build-cache/bc13ffa1b029cd028a6eb021e00d5ca54a338816/output/jni
    File2: /Users/jimclermonts/.android/build-cache/628132c7935bf52aecbded43d68d9a18b028d8ba/output/jni
JimClermonts commented 7 years ago

Removing

    realm {
        syncEnabled = true;
    }

solved the issue