Can I import a library write in Kotlin to my android project (uses java)

好久不见. 提交于 2020-02-24 14:08:27

问题


I have to import a library written in Kotlin to my android project. The library needed to import is here

This library is written in Kotlin but I am using java in my project.Is this possible? I have done some research on this topic but I can't find a good document on this.


回答1:


Yes you can. Kotlin compiles to Java bytecode so it's completely compatible



来源:https://stackoverflow.com/questions/43307926/can-i-import-a-library-write-in-kotlin-to-my-android-project-uses-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!