Closed luoyexk closed 4 years ago
how can I merge them?
` package io.objectbox.model; import java.nio.; import java.lang.; import java.util.; import com.google.flatbuffers.; @SuppressWarnings("unused") /**
Apply the ObjectBox plugin after the dependencies block:
dependencies {
...
}
apply plugin: 'io.objectbox'
Manually include objectbox-java
and exclude its flatbuffers dependency:
implementation("io.objectbox:objectbox-java:$objectboxVersion") {
exclude group: 'com.google.flatbuffers', module: 'flatbuffers-java'
}
-Uwe
Since 2.6.0
the objectbox-java
library no longer leaks the FlatBuffers dependency, making the above workaround superfluous.
latest version +--- project :module_mobile | +--- project :lib_common | | +--- io.objectbox:objectbox-kotlin:2.3.4 | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.21 | | | | +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.3.21 | | | | --- org.jetbrains:annotations:13.0 | | | --- io.objectbox:objectbox-java:2.3.4 | | | +--- io.objectbox:objectbox-java-api:2.3.4 | | | +--- org.greenrobot:essentials:3.0.0-RC1 | | | +--- com.google.flatbuffers:flatbuffers-java:1.9.0 | | | --- com.google.code.findbugs:jsr305:3.0.2 | | +--- io.objectbox:objectbox-android:2.3.4 | | | --- io.objectbox:objectbox-java:2.3.4 (*)
google arcore lib use flatbuffers, your package name are same, this make conflict