一.将module打成jar

(上图打包的Android studio版本为3.6.1)
可能出现的异常:

这是因为Android studio的版本不同,导致classes.jar的位置不同,具体还要看自己的版本位置
*打包完成,包所在的位置

二.将module打成aar包
1.确保当前build.gradle的依赖状态是apply plugin: 'com.android.library'
2.然后执行执行编译命令即可

3.打包完成后的位置

一.将module打成jar
(上图打包的Android studio版本为3.6.1)
可能出现的异常:
这是因为Android studio的版本不同,导致classes.jar的位置不同,具体还要看自己的版本位置
*打包完成,包所在的位置
二.将module打成aar包
1.确保当前build.gradle的依赖状态是apply plugin: 'com.android.library'
2.然后执行执行编译命令即可
3.打包完成后的位置
本文标题:Android-将Module打成aar或jar遇到的坑
本文链接:https://www.haomeiwen.com/subject/prhilltx.html
网友评论