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

[App引擎] 使用升级环境编译 模块制作报错

[复制链接]
发表于 2018-3-7 13:48:16
本帖最后由 gggyyy 于 2018-3-7 14:02 编辑

使用升级环境编译

固件5.0.1 没改任何东西, 有时候编译后正常运行 ,我编译很多次偶尔能运行 大部分报错。

运行报错
java.lang.NoSuchMethodError: No static method getDisplay(Landroid/view/View;)Landroid/view/Display; in class Landroid/support/v4/view/ViewCompat; or its super classes (declaration of 'android.support.v4.view.ViewCompat' appears in /data/app/com.q17131537711.bde-1/base.apk:classes2.dex)
                                              at android.support.v7.widget.RecyclerView.onAttachedToWindow(RecyclerView.java:2502)



模块引入包
compile ('com.android.support:appcompat-v7:25.3.1')
compile ('com.android.support.constraint:constraint-layout:1.0.2')
compile ('com.android.support:recyclerview-v7:25.3.1')
模块里有ui还必须引入这三个包

我把这三个包用到的.aar .jar 都放到模块里上传了。包括他们的依赖包


我想问一下 compile ('com.android.support:appcompat-v7:25.3.1') 模块里这样引用 使用升级环境编译 会自动把appcompat-v7 包含到app了吗
模块是封装腾讯云小视频


17
帖子
0
勋章
24
Y币
如果不上传 appcompat-v7-25.3.1.aar  使用升级环境编译报错

/uzmap/temp/DEuWoYPvW90WKPQ/AStudioProject/app/build/intermediates/res/merged/release/values/values.xml:509: AAPT: Error retrieving parent for item: No resource found that matches the given name 'Base.Theme.AppCompat.Light.Dialog'.
20
帖子
1
勋章
7575
Y币
根据:https://community.apicloud.com/bbs/thread-77106-1-1.html2楼回复,把你模块依赖的包放到模块包里。
您需要登录后才可以回帖 登录

本版积分规则