Closed Fjeldsoe1 closed 3 years ago
oops, yes it should. Weird, how could I have made that mistake, couldn't have been a copy&paste mistake.
But with the "s", it works fine, right?
The error I wrote in the above comment, is what I get when I just added the "s" to "configuration"
Do you have a build.gradle.kts or build.gradle?
Hm there is also missing a colon here:
all*.exclude group: 'net.sf.kxml', module: 'kxml2'
^
It's build.gradle.kts. I have tried to copy the "configurations" from StreetComplete, and that works (I am still in very early in development of my application)
Good thinking, I was just writing this post. Could you check if this would work too?
configurations {
// already included in Android
all {
exclude(group = "net.sf.kxml", module = "kxml2")
}
// @NonNull etc annotations are also already included in Android
implementation.configure {
exclude(group = "org.jetbrains", module = "annotations")
exclude(group = "com.intellij", module = "annotations")
exclude(group = "org.intellij", module = "annotations")
}
}
(In the future I might want to add those nonnull annotations to improve compatibility with Kotlin, but they need to be removed again due to them being included in Android already. This is why I mention these in the README.md already)
That seems to work fine! I didn't get any errors
thanks! I'll update the readme
Hey
shouldn't the "configuration" in the readme be "configurations" because I can't get it to work otherwise? And after changing that, I get the following error:
The code snippet is the configurations from the readme i.e: