惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
N
Netflix TechBlog - Medium
腾讯CDC
C
Check Point Blog
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
S
SegmentFault 最新的问题
F
Fortinet All Blogs
美团技术团队
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 司徒正美
F
Full Disclosure
Recorded Future
Recorded Future
D
DataBreaches.Net
博客园 - 【当耐特】
Martin Fowler
Martin Fowler
J
Java Code Geeks
I
InfoQ
Y
Y Combinator Blog
A
About on SuperTechFans
AI
AI
爱范儿
爱范儿
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Forbes - Security
Forbes - Security
W
WeLiveSecurity
M
MIT News - Artificial intelligence
雷峰网
雷峰网
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
Schneier on Security
Schneier on Security
The GitHub Blog
The GitHub Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
D
Docker
Recent Commits to openclaw:main
Recent Commits to openclaw:main
量子位
V2EX - 技术
V2EX - 技术
Project Zero
Project Zero

博客园 - 梦书

Ubuntu 下修改文件和文件夹混合排序的时候-文件夹优先的规则 HarmonyOS应用开发者高级认证-2025年1月份 2024年年终总结 2024年上半年软件设计师第一批 2023年下半年网络工程师 获取Android设备的所有属性值 2022年架构设计师考试 2022年第2次居家办公 2021年系统分析师考试总结 Android开发手记之第一次运维 Ubuntu上降级chrome Android开发手记之图片base64 2020年信息系统项目管理师案例计算题之我见 2020年信息系统项目管理师上午综合题41-75 2020年信息系统项目管理师上午综合题1-40 Android开发手记之Return code is: 401, ReasonPhrase: Unauthorized. Android开发手记之Could not find tools.jar Android开发手记之compileDebugAidl failed Android开发手记之duplicate entry: res/drawable/a.xml
Android开发手记之android.content.res.Resources$NotFoundException: Resource ID #0x7f04005e
梦书 · 2020-09-18 · via 博客园 - 梦书

替换一个第3方的SDK另外一个aar导致的,根据崩溃日志,确定崩溃的地方的资源是存在的。

将该aar解压出来,用JD-GUI看了下class.jar,发现里面的代码是这样的:

setContentView(2130968670);

这个如果是在APK里面是没有问题的,但是在aar里面就有问题了

aar里面的资源应该是

setContentView(R.layout.a.xml);

要不然,引用该aar的APK编译后,大概率是找不到这个xml,甚至还会链接到不同的layout或者其他资源类型。

2130968670这个10进制数刚好是16进制数0x7f04005e。

又是对方打包出现的问题,

这个猜想可能是对方直接运行demo,然后将aar拷贝出来导致的。

解决方法:让对方重新打包了。