This message was deleted.
# community-support
s
This message was deleted.
m
Mmm yes. Android applications are terminal modules, they can't really be used as a dependency
Or did you mean the other way around?
t
in general, jvm cannot depend on android. The other way around is fine though
☝️ 1
m
You can have this:
Copy code
plugins {
  id("com.android.application")
  id("org.jetbrains.kotlin.android")
}

dependencies {
  implementation(project(":jvm-only"))
}
but not the other way around as @tony said
l
I guess this applies to
id("com.android.library")
as well?
m
Yes, Android uses
.aar
files that JVM in general doesn't understand
Android ships resources and other things in their
.aar
and has some APIs that are not available to JVM (
Context, Views
, etc..). If you want to consume that from a JVM project, you'll have to isolate the non-android parts
l
Thanks for the insights guys ❤️
👍 1