请选择 进入手机版 | 继续访问电脑版
帖子
帖子
用户
博客
课程
显示全部楼层
10
帖子
0
勋章
82
Y币

[插件开发] 不能打包

[复制链接]
发表于 2021-10-16 16:55:29
2021-10-16 04:51:38FAILURE: 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/ebab8b74cfab20337308d9649bcebab8/material-1.1.0/res/values/values.xml:419:5-425:11: AAPT: error: resource attr/dialogPreferredPadding (aka com.cfw:attr/dialogPreferredPadding) not found.              /uzmap/.gradle/caches/transforms-2/files-2.1/ebab8b74cfab20337308d9649bcebab8/material-1.1.0/res/values/values.xml:419:5-425:11: AAPT: error: resource attr/dialogPreferredPadding (aka com.cfw:attr/dialogPreferredPadding) not found.              /uzmap/.gradle/caches/transforms-2/files-2.1/ebab8b74cfab20337308d9649bcebab8/material-1.1.0/res/values/values.xml:419:5-425:11: AAPT: error: resource dimen/abc_dialog_padding_top_material (aka com.cfw:dimen/abc_dialog_padding_top_material) not found.              /uzmap/.gradle/caches/transforms-2/files-2.1/ebab8b74cfab20337308d9649bcebab8/material-1.1.0/res/values/values.xml:434:5-443:11: AAPT: error: style attribute 'attr/fontFamily (aka com.cfw:attr/fontFamily)' not found.              /uzmap/.gradle/caches/transforms-2/files-2.1/ebab8b74cfab20337308d9649bcebab8/material-1.1.0/res/values/values.xml:444:5-452:11: AAPT: error: style attribute 'attr/fontFamily (aka com.cfw:attr/fontFamily)' not found.              /uzmap/.gradle/caches/transforms-2/files-2.1/ebab8b74cfab20337308d9649bcebab8/material-1.1.0/res/values/values.xml:453:5-461:11: AAPT: error: style attribute 'attr/fontFamily (aka com.cfw:attr/fontFamily)' not found.              /uzmap/.gradle/caches/transforms-2/files-2.1/ebab8b74cfab20337308d9649bcebab8/material-1.1.0/res/values/values.xml:462:5-470:11: AAPT: error: style attribute 'attr/fontFamily (aka com.cfw:attr/fontFamily)' not found.              /uzmap/.gradle/caches/transforms-2/files-2.1/ebab8b74cfab20337308d9649bcebab8/material-1.1.0/res/values/values.xml:473:5-477:11: AAPT: error: resource style/Widget.AppCompat.ListView.Menu (aka com.cfw:style/Widget.AppCompat.ListView.Menu) not found.              /uzmap/.gradle/caches/transforms-2/files-2.1/ebab8b74cfab20337308d9649bcebab8/material-1.1.0/res/values/values.xml:473:5-477:11: AAPT: error: resource style/Animation.AppCompat.DropDownUp (aka com.cfw:style/Animation.AppCompat.DropDownUp) not found.              /uzmap/.gradle/caches/transforms-2/files-2.1/ebab8b74cfab20337308d9649bcebab8/material-1.1.0/res/values/values.xml:479:5-482:11: AAPT: error: style attribute 'attr/windowMinWidthMajor (aka com.cfw:attr/windowMinWidthMajor)' not found.              /uzmap/.gradle/caches/transforms-2/files-2.1/ebab8b74cfab20337308d9649bcebab8/material-1.1.0/res/values/values.xml:479:5-482:11: AAPT: error: style attribute 'attr/windowMinWidthMinor (aka com.cfw:attr/windowMinWidthMinor)' 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**.**



模块在android stduio是能正常运行的。
10
帖子
0
勋章
82
Y币
这个是android和androidx冲突。
10
帖子
0
勋章
82
Y币
support-media-compat-26.0.0-runtime.jar  我在项目中没有导入。
10
帖子
0
勋章
82
Y币
你们这个模块导入第三方包真是很麻烦。
10
帖子
0
勋章
82
Y币
问下这个冲突怎么解决。 Duplicate class android.support.v4.media.session.PlaybackStateCompatApi22 found in modules media-1.0.0-runtime.jar (media-1.0.0.aar) and support-media-compat-26.0.0-runtime.jar (com.android.support:support-media-compat:26.0.0)
10
帖子
0
勋章
82
Y币
你们的模块不兼容androidx吗?
127
帖子
7
勋章
2万+
Y币
浙江徐 发表于 2021-10-16 17:07
你们的模块不兼容androidx吗?

现在也已兼容,但是兼容的不是很好
10
帖子
0
勋章
82
Y币
我把androidx换回成android包就可以的了。
10
帖子
0
勋章
82
Y币
现在的项目很多都是用androidx的,apicloud还是要尽快支持androidx。
127
帖子
7
勋章
2万+
Y币
浙江徐 发表于 2021-10-18 14:23
现在的项目很多都是用androidx的,apicloud还是要尽快支持androidx。

现在已经支持了,有时间可以尝试一下。

https://docs.apicloud.com/Module ... id-studio#resoure91
您需要登录后才可以回帖 登录

本版积分规则