Unresolved reference when using a local jar in kotlin project

Answered

i am not good at english,so i use google translate for help.hope my meaning can be expressed clearly.

I am trying to import a jarfile which is created by myself in my project.I build a gradle project(kotlin jvm),add my local jar into gradle.build,find it in the <External Libraries>,but when i tried to import my classes,i got a "Unresolved reference" error,however,i can run my code.how can i fix it?many thx

0
2 comments

Remove kotlin runtime from the dependency jar, it's a known issue: https://youtrack.jetbrains.com/issue/KT-25709.

0

great!it works for me.thanks a lot

0

Please sign in to leave a comment.