Android ObjectBox database pit avoidance Duplicate files copied in APK lib/armeabi-v7a/libobjectbox.so

It is said that Objectbox is faster than all databases. There are still some pitfalls. After working for a day, the documents given by the official website are really pitfalls. Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfig
com.android.build.gradle .internal.tasks.CheckDuplicatesRunnable
Duplicate files copied in APK lib/armeabi-v7a/libobjectbox.so)
jetified-kotlin-stdlib version conflict and what the official website said.
Note that the drawn line should be placed after the dependencies,
insert image description here
as shown in the picture, online Many articles say the same thing, but they miss the first underlined part.
insert image description hereIf you follow the integration of the official website, you will be in the pit. It took me a day to come out. The official website still has this plug-in in front, so the library will be repeated. gradle compilation fails.
insert image description here
Hey, it is said that the room is a pit, and ObjectBox is as black as crows in the world.

This bug occurs when you want the browser to view the database, debugApi 'io.objectbox:objectbox-android-objectbrowser:3.2.1'
releaseApi "io.objectbox:objectbox-android:3.2.1" to integrate. Big pit, big pit.
It is also mentioned in the official website
insert image description here
, but the first underlined part is not mentioned, which caused many small partners to fall into the trap.

Guess you like

Origin blog.csdn.net/u012553125/article/details/126520993