gradle
麻辣炖土豆儿
Android ,flutter,h5
展开
-
More than one file was found with OS independent path ‘AndroidManifest.xml‘.
问题背景公司需要把底层module库打包上传到私有maven库,有两个库A,B 以及两个aar包a,b。其中A依赖B, B依赖b,A依赖a,我先将B直接发布到maven中,然后A中通过maven的方式依赖B,将A上传至maven。最终我新建工程并添加A的maven依赖,在run的时候报错。最终查阅资料显示,module中的aar不能采用本地依赖的方式,原因是最终生成的aar可能会破坏本地依赖的aar的结构。解决方案将本地以来的aar上传到maven仓库,然后通过maven的方式依赖。原创 2021-03-26 16:47:17 · 1345 阅读 · 0 评论 -
使用gradle上传aar到私有maven库
新建空白library在library的gradle中添加如下代码plugins { id 'com.android.library' id 'maven-publish' id 'publishing'}以及publishing { repositories { maven { credentials { username "" password "原创 2021-03-25 12:04:04 · 481 阅读 · 0 评论 -
gradle构建maven提示Missing required attribute: dependency groupId POM
构建maven的时候,gradle的脚本是这样的uploadArchives { repositories { mavenDeployer { repository(url: 仓库地址) { authentication(userName: 仓库用户名, password: 仓库密码) } pom.project { groupId ""原创 2021-03-17 14:58:10 · 3567 阅读 · 0 评论