[英]Create android module library from existing source
我想创建一个模块以将其包含在其他应用程序中。
You can make a new Android/Java Gradle project (depending on your needs), then if you would like to use that as a library, you can go into the project settings and import the corresponding build.gradle
for that project/module. 您可以创建一个新的Android / Java Gradle项目(取决于您的需求),然后,如果您希望将其用作库,则可以进入项目设置并为该项目/模块导入相应的
build.gradle
。
You may additionally need to compile project
in your own Gradle file to actually pull in those classes to your project. 您可能还需要在自己的Gradle文件中
compile project
,以将这些类实际导入到项目中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.