The object-box database offers a very easy way of implementation for both android
and jvm
projects. It has clear-text documentation for these purposes. But problem arises when I try to use it into a multiplatform
project. There are no problems with the android part. But problem arises when I try to apply the io.objectbox
plugin into the desktop
counterpart.
Since, I have to use the kotlin("mutliplatform")
plugin, it fails to sync saying:
Caused by: org.gradle.api.plugins.InvalidPluginException: 'io.objectbox' can only be applied to a project if one of the following is applied before:
* an Android plugin
* the Kotlin Android or JVM plugin
* the Java Library, Java Application or Java plugin
Neither of these options seems possible to use. How can I use then?