请选择 进入手机版 | 继续访问电脑版
帖子
帖子
用户
博客
课程
12下一页
返回列表 发新帖
显示全部楼层
7
帖子
0
勋章
43
Y币

[插件开发] 自定义模块编译报错(使用升级环境)

[复制链接]
发表于 2018-7-20 17:27:50
我使用的本地配置是:
compileSdkVersion 23
buildToolsVersion "25.0.0"

defaultConfig {
    minSdkVersion 16
    targetSdkVersion 22

本地编译成功,在上传到ApiCloud上进行编译时报错 ,
在ApiCloud上编译时,使用Android6.0(API23),使用升级环境编译


报错内容为:Error retrieving parent for item: No resource found that matches the given name 'ThemeOverlay.AppCompat.Dark.ActionBar'.
No resource found that matches the given name: attr 'colorAccent'.

No resource found that matches the given name: attr 'colorPrimary'.

No resource found that matches the given name: attr 'colorPrimaryDark'.

因为使用了第三方的aar,其中包含了页面文件,
在第三方的aar中包含了以上的属性,自己的模块中没有使用这些属性


求解:是因为名称和Apicloud的某些命名冲突了吗? 解决方案是 改变第三方AAR包中的报错的属性的命名吗?


146
帖子
3
勋章
3684
Y币
https://docs.apicloud.com/Module ... -for-android-studio
对照这个检查一下,看看有没有少东西
10
帖子
0
勋章
51
Y币
我也遇到这样问题你问题解决没?
216
帖子
5
勋章
5752
Y币
少东西了。
7
帖子
0
勋章
43
Y币

这回我的整个过程截图

1、工程结构,build中已经加入了aar依赖,本地编译没有问题
01.png

2、上传模块的文件夹和模块声明的内容,已经将两个aar包放入该文件夹
02.png
3、自定义模块的ZIP包
03.png
4、上传后编译(使用升级环境)报错的内容 地址:http://downloadpkg.apicloud.com/ ... 71b8db3456c5ebe.log
04.png

216
帖子
5
勋章
5752
Y币
云编译环境设置的固件版本是多少/?
1.png
7
帖子
0
勋章
43
Y币
52yaoer 发表于 2018-7-23 11:14
云编译环境设置的固件版本是多少/?

Android6.0
7
帖子
0
勋章
43
Y币
52yaoer 发表于 2018-7-23 11:14
云编译环境设置的固件版本是多少/?

当前的用是6.0 但是我各个版本从4.4到7 都试过了
216
帖子
5
勋章
5752
Y币
appcompat-v7 少这个了,,
7
帖子
0
勋章
43
Y币
52yaoer 发表于 2018-7-23 11:34
appcompat-v7 少这个了,,

加入v7.aar包后编译没有报错,但是在使用时仍然报错,以下是全部过程:
1、在模块中的方法名符合模块要求
001.png


2、在已添加模块中已经将该模块添加
002.png

3、使用升级环境进行编译,编译版本6.0
003.png
4.代码中对模块的调用
004.png

5、测试时报错
005.png

12下一页
您需要登录后才可以回帖 登录

本版积分规则