帖子
帖子
用户
博客
课程
显示全部楼层
4
帖子
0
勋章
54
Y币

[插件开发] 模块开发,自定义编译报错 资源找不到,但是aar和module中都.....

[复制链接]
发表于 2022-3-3 14:28:28
2022-03-03 02:06:10FAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':app:processReleaseResources'.> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade   > Android resource linking failed     /uzmap/.gradle/caches/transforms-2/files-2.1/f883f200cd1b958c8ff67a052de50e06/gatelibrary-release/res/values/values.xml:223:5-226:13: AAPT: error: style attribute 'attr/colorControlNormal (aka com.slfq.nxlyykthyd.zj:attr/colorControlNormal)' not found.              /uzmap/.gradle/caches/transforms-2/files-2.1/f883f200cd1b958c8ff67a052de50e06/gatelibrary-release/res/values/values.xml:223:5-226:13: AAPT: error: style attribute 'attr/colorControlActivated (aka com.slfq.nxlyykthyd.zj:attr/colorControlActivated)' not found.              /uzmap/.gradle/caches/transforms-2/files-2.1/f883f200cd1b958c8ff67a052de50e06/gatelibrary-release/res/values/values.xml:227:5-230:13: AAPT: error: style attribute 'attr/colorControlNormal (aka com.slfq.nxlyykthyd.zj:attr/colorControlNormal)' not found.              /uzmap/.gradle/caches/transforms-2/files-2.1/f883f200cd1b958c8ff67a052de50e06/gatelibrary-release/res/values/values.xml:227:5-230:13: AAPT: error: style attribute 'attr/colorControlActivated (aka com.slfq.nxlyykthyd.zj:attr/colorControlActivated)' not found.         * Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help**.**BUILD FAILED in 58s

==============
上面的报错信息 在改模块中有这个资源

报错的资源存在

报错的资源存在

aar 包里也有 报错的资源.png

aar 包里也有 报错的资源.png
380
帖子
4
勋章
6
Y币
稍等
0
帖子
1
勋章
2588
Y币
gatelibrary的build.gradle都依赖了哪些资源?
4
帖子
0
勋章
54
Y币
2022-03-03 05:37:39

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeReleaseNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > More than one file was found with OS independent path 'lib/armeabi-v7a/libbd_unifylicense.so'

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help**.**

BUILD FAILED in 44s


又出现了新的问题

4
帖子
0
勋章
54
Y币
2022-03-03 05:37:39

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeReleaseNativeLibs'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > More than one file was found with OS independent path 'lib/armeabi-v7a/libbd_unifylicense.so'

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help**.**

BUILD FAILED in 44s
JP1688 · 2022-3-3 15:16gatelibrary的build.gradle都依赖了哪些资源?
380
帖子
4
勋章
6
Y币
解决了吗
0
帖子
1
勋章
2588
Y币
https://docs.apicloud.com/Dev-Guide/app-config-manual 配置支持的CPU设备类型,你参考一下
BIP627503 · 2022-3-3 17:392022-03-03 05:37:39

FAILURE: Build failed with an exception.
您需要登录后才可以回帖 登录

本版积分规则