Comments (2)
是这样,我们在去年底引入了Apache Commons库,这样可避免“重复造轮子”(并将之前的调用迁移到Apache上)。然而后来发现由于MIUI内置了“旧版本”的Apache库,且ClassLoader的双亲委派机制的原因(注意,和Hook无关),在“未混淆”的应用上,运行会出现找不到removeFinalModifier的情况。
换言之,只要在小米ROM上,用到Apache或第三方开源库的,且“未经混淆”的前提下,都会有这类问题,无论是哪个项目。当然,要解决这个问题也很简单,就是出包时混淆即可,只要Apache包名一改,则双亲委派就认为是两个Class,自然不会出现问题。
我们已将“替换Apache为原来自研类库”作为我们下一版的Issue,届时将不再使用Apache。就目前而言,您可以临时换一台非小米的手机来运行Sample,也可以像卫士那样混淆编译(我们AAR已自带混淆Proguard,引入即生效),也可以将Apache类库临时改名。
最后,非常感谢您提出的建议。
from replugin.
抱歉,这段时间一直忙,忘了回复了,这个我们早在2.1.1上已经修复了。欢迎试用。
from replugin.
Related Issues (20)
- dataBinding 编译失败
- androidx.fragment.app.Fragment
- 引入androidx.activity:activity-ktx:1.3.1后编译报错 HOT 6
- 无法支持AGP 4.0,gradle 6.1以上的编译环境 HOT 3
- [Warning] --> javassist.NotFoundException: androidx.fragment.app.FragmentActivity
- 请教下插件配置横屏的坑位是哪个? HOT 1
- unity libunity.so 加载的问题 HOT 1
- 配置插件RePlugin.App.attachBaseContext(this);报错
- ComposedException
- Cause: maven.geelib.360.cn:80 failed to respond
- onConfigurationChanged
- 请教下Replugin支持AGP 7.3吗 HOT 1
- 可以提供对应的隐私协议吗?接入App, 需要合规检查
- 如果遇到3.0.0 版本下载不下来可以加上这句
- 引入 v3.0.0 编译报错,申明的Activity,Service并不存在 HOT 1
- 请求对 Gradle 8.0.0 的支持
- Maven server is down.
- Maven 服务器挂了吗?依赖不下来了
- Android14无法释放插件内部的so文件 HOT 2
- Replugin是否还继续维护?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from replugin.