https://kotlinlang.org logo
#library-development
Title
# library-development
d

dgngulcan

02/07/2018, 8:44 PM
Hey guys, I am having an issue with my kotlin library project. when I export the project as
aar
and compile it to a project that kotlin is not added to and having the exception
Caused by: java.lang.ClassNotFoundException: Didn't find class "kotlin.jvm.internal.Lambda"
What could be the problem? My kotlin dependencies as below, api 'org.jetbrains.kotlinkotlin stdlib1.2.21' api 'org.jetbrains.kotlinxkotlinx coroutines core0.22.2' api 'org.jetbrains.ankoanko coroutines0.10.4'
l

louiscad

02/08/2018, 2:40 AM
Sounds like a pom.xml issue
d

dgngulcan

02/08/2018, 3:10 AM
I asked a question on stackoverflow : https://stackoverflow.com/questions/48674893/kotlin-library-project-failed-resolution-of-lkotlin-reflect-kproperty Would appreciate if you take a quick look Louis!
for the record, the issue was that
aar
file does not include the dependencies as @louiscad mentioned, the pom file wasn't including dependencies of the library module. solution can be found in the stackoverflow question above.
23 Views