Android 因为混淆文件配置,打release包提示running R8问题处理

一、报错信息

复制代码
Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are generated in E:\workplace\xxxxxx\app\build\outputs\mapping\release\missing_rules.txt.
Missing class org.mediakit.R$layout (referenced from: android.view.View org.mediakit.ScImeService.onCreateInputView())

二、解决办法

在proguard-rules.pro中添加以下语句:

复制代码
-dontwarn org.vclusters.R$layout

处理思路:根据报错提示,采用-dontwarn 去除警告,后面就可以打包成功了

相关推荐
00后程序员张1 天前
iOS 性能优化的体系化方法论 从启动速度到渲染链路的多工具协同优化
android·ios·性能优化·小程序·uni-app·iphone·webview
游戏开发爱好者81 天前
iPhone重启日志深度解析与故障代码诊断
android·ios·小程序·https·uni-app·iphone·webview
TDengine (老段)1 天前
TDengine 字符串函数 TO_BASE64 用户手册
android·大数据·服务器·物联网·时序数据库·tdengine·涛思数据
spencer_tseng1 天前
Eclipse Oxygen 4.7.2 ADT(android developer tools) Plugin
android·java·eclipse
来来走走1 天前
Android开发(Kotlin) 协程
android·java·kotlin
河铃旅鹿1 天前
Android开发-java版:Framgent
android·java·笔记·学习
2501_916008891 天前
手机抓包app大全:无需root的安卓抓包软件列表
android·ios·智能手机·小程序·uni-app·iphone·webview
百锦再1 天前
第18章 高级特征
android·java·开发语言·后端·python·rust·django
gcygeeker1 天前
安卓 4.4.2 电视盒子 ADB 设置应用开机自启动
android·adb·电视盒子
小驰行动派1 天前
安卓上的极简番茄钟 | 开源
android·开源