Skip to content

AweiLoveAndroid/Kotlin-learn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kotlin-learn

kotlin和java混合使用总结

关于详细的文字介绍,更多细节的讲解说明,请查看我的博客 kotlin和java混合开发总结


一、Kotlin项目里面集成Java的module

这一部分源码请看:https://github.com/AweiLoveAndroid/Kotlin-learn/tree/master/KotlinAndJavaDemo


项目结构图:

1.创建java的module

请看源码:https://github.com/AweiLoveAndroid/Kotlin-learn/tree/master/KotlinAndJavaDemo/javamodule

2.创建java的lib

请看源码:https://github.com/AweiLoveAndroid/Kotlin-learn/tree/master/KotlinAndJavaDemo/javalibrary


二、Java项目里面集成Kotlin的module

这一部分源码请看:https://github.com/AweiLoveAndroid/Kotlin-learn/tree/master/JavaAndKotlinDemo

项目结构图:

1.创建kotlin的module

请看源码:https://github.com/AweiLoveAndroid/Kotlin-learn/tree/master/JavaAndKotlinDemo/kotlinmodule

2.创建kotlin的lib

请看源码:https://github.com/AweiLoveAndroid/Kotlin-learn/tree/master/JavaAndKotlinDemo/kotlinlibrary

About

kotlin和java混合使用总结

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published