I am trying to use Qi4j with Android but I have problems defining the dependenciy because the gradle "runtime"-dependency does not exist on android.
According to the qi4j website, the dependencies should look like this:
repositories {
// ...
mavenRepo name: 'qi4j-releases', url: "https://repository-qi4j.forge.cloudbees.com/release/"
mavenRepo name: 'qi4j-snapshots', url: "https://repository-qi4j.forge.cloudbees.com/snapshot/"
// ...
}
dependencies {
// ...
compile "org.qi4j.core:org.qi4j.core.bootstrap:QI4J_VERSION"
runtime "org.qi4j.core:org.qi4j.core.runtime:QI4J_VERSION"
test "org.qi4j.core:org.qi4j.core.testsupport:QI4J_VERSION"
// ...
}
Because "runtime" does not exist in the gradle android-plugin, I've changed it to "apk":
But I am still getting errors when I am trying to user some library functions in Android Studio.
dependencies {
compile "org.qi4j.core:org.qi4j.core.bootstrap:2.0"
apk "org.qi4j.core:org.qi4j.core.runtime:2.0"
}
What is the right way to import this for android?