Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同时集成Bubly的Tinker1.9.6热修复时,打补丁包失败 #114

Open
Samge0 opened this issue Jul 11, 2018 · 2 comments
Open

同时集成Bubly的Tinker1.9.6热修复时,打补丁包失败 #114

Samge0 opened this issue Jul 11, 2018 · 2 comments

Comments

@Samge0
Copy link

Samge0 commented Jul 11, 2018

我原有项目也集成了tinker热修复功能。所以在使用该组件化方案前,测试了一下对tinker的支持。

直接使用DDComponentForAndroid提供的Demo集成buglySdk支持的tinker1.9.6,编译跟运行都没有问题,但是发现在打补丁包的时候出错了。

异常类型:其他兼容性异常

手机型号:努比亚Z11 miniS (其他手机也一样)

手机系统版本:Android6.0

bugly的tinker支持的SDK版本:com.tencent.bugly:tinker-support:1.1.2

实际使用的tinker版本:1.9.6

gradle工具版本:3.0.1

是否使用热更新SDK: Bugly SDK

系统:ubuntu18.04

堆栈/日志:
Information:Gradle tasks [buildTinkerPatchDebug]
Error:Failed to complete Gradle execution.

Cause:
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

Warning:ignoreWarning is false, but we found some loader class has been changed in new primary dex. Such these changes will not take effect!! related classes: {Lcom/luojilab/componentdemo/application/BaseTinkerApplication;}

Error:com.tencent.tinker.build.util.TinkerPatchException: some loader class has been changed in new primary dex. Such these changes will not take effect!! related classes: {Lcom/luojilab/componentdemo/application/BaseTinkerApplication;}

Information:2 errors
Information:1 warning
Information:See complete output in console

image

@YummyLau
Copy link

看样子是宿主application被修改了,应该是application被插入了依赖组件初始化的代码。

@xiaojinzi123
Copy link

我原有项目也集成了tinker热修复功能。所以在使用该组件化方案前,测试了一下对tinker的支持。

直接使用DDComponentForAndroid提供的Demo集成buglySdk支持的tinker1.9.6,编译跟运行都没有问题,但是发现在打补丁包的时候出错了。

异常类型:其他兼容性异常

手机型号:努比亚Z11 miniS (其他手机也一样)

手机系统版本:Android6.0

bugly的tinker支持的SDK版本:com.tencent.bugly:tinker-support:1.1.2

实际使用的tinker版本:1.9.6

gradle工具版本:3.0.1

是否使用热更新SDK: Bugly SDK

系统:ubuntu18.04

堆栈/日志:
Information:Gradle tasks [buildTinkerPatchDebug]
Error:Failed to complete Gradle execution.

Cause:
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

Warning:ignoreWarning is false, but we found some loader class has been changed in new primary dex. Such these changes will not take effect!! related classes: {Lcom/luojilab/componentdemo/application/BaseTinkerApplication;}

Error:com.tencent.tinker.build.util.TinkerPatchException: some loader class has been changed in new primary dex. Such these changes will not take effect!! related classes: {Lcom/luojilab/componentdemo/application/BaseTinkerApplication;}

Information:2 errors
Information:1 warning
Information:See complete output in console

image

可能就是因为使用了 gradle 插件,所以我十分不愿意去更改一些系统的行为,独立运行个人建议单独建立一个 module 去包含 lib 去运行,不仅清楚,而且是系统的方式,缺点就是module 可能很多,但是你注意命名其实看起来挺好的,另外这个库很久不维护了,一些问题不能及时修复,可能的话建议尝试
Component

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants