Tencent / tinker

Tinker is a hot-fix solution library for Android, it supports dex, library and resources update without reinstall apk.
Other
17.14k stars 3.33k forks source link

华为手机9.0系统 补丁包加载不成功 #1180

Open liangchaojie opened 5 years ago

liangchaojie commented 5 years ago

//使用的是最新版本的 api 'com.tencent.tinker:tinker-android-lib:1.9.13.2'

我是使用bugly的热修复集成方式,在8.0的系统上可以成功加载补丁但是9.0就不行了

8.0的手机上日志如下: tryLoadPatchFiles:isEnabledForResource:true

但是9.0手机上日志是 tryLoadPatchFiles:patch dir not exist:/data/user/0/com.buglyhotfix/tinker

手机是华为nova3 系统是 android 9.0

liangchaojie commented 5 years ago

@tomystang 大佬有时间能帮我解决一下吗

Cazaea commented 5 years ago

同样的问题, 在其他版本没有发现问题~

Cazaea commented 5 years ago

完全按文档 http://tinkerpatch.com/Docs/SDK 来;

项目采用 androidX搭建;

SDK版本: implementation 'com.tinkerpatch.sdk:tinkerpatch-android-sdk:1.2.13.3' implementation 'com.tinkerpatch.tinker:tinker-android-anno:1.9.13.3' annotationProcessor 'com.tinkerpatch.tinker:tinker-android-anno:1.9.13.3'

两个手机正常: (1,魅蓝note1, anroid 5.0.1; 2.三星s4, android 5.1)

问题设备: 华为P10 , Android 9;

image

image

Cazaea commented 5 years ago

昨天下午17点多重新上传补丁包, 短时间内没有修复问题; 直到今天下午13点之后, P10设备再一次打开应用, 发现问题已修复; 需要关掉3小时轮询, 每次启动应用时重新拉取补丁吗? 还是说我要添加 Provider ?

Liar1995 commented 5 years ago

@liangchaojie 想了解一下,Bugly集成方式,tinker 1.9.13.2版本,那么com.tencent.bugly:tinker-support应该用什么版本呢?

kiitos commented 5 years ago

@liangchaojie 想了解一下,Bugly集成方式,tinker 1.9.13.2版本,那么com.tencent.bugly:tinker-support应该用什么版本呢?

1.2.0

20190827142809

manitozhang commented 5 years ago

我是华为9.0, 能加载成功,但是会有问题,我新添了对h5的交互, 导致我当前页面的其他h5交互的弹窗不显示了,有没有大哥救一下火

manitozhang commented 5 years ago

楼主解决了吗?

talentsxh commented 5 years ago

华为 mate20 和荣耀v20 都是9的系统,加固后都不行,能下发,能激活,就是修复不了。 没有加固都可以修复成功。