Tencent / tinker

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

能不能升级一下gradle版本啊 各种冲突编译打包报错 用了你项目gradle就再也升不动了 快要弃坑了 #1506

Open liupengandroid opened 3 years ago

liupengandroid commented 3 years ago

Could not get unknown property 'manifestOutputDirectory' for task ':android_live:processOnlineDebugManifest' of type com.android.build.gradle.tasks.ProcessMultiApkApplicationManifest.

smashinggit commented 3 years ago

同问 这个问题怎么解决?什么是能能够兼容 gradle 4.1.1

youxiachai commented 3 years ago

@smashinggit https://github.com/youxiachai/tinker-new-sample-android 4.0.1 应该可以用啊...我觉得4.1.1应该问题不大..

smashinggit commented 3 years ago

好的 我试一下,多谢多谢

在 2021-02-20 13:33:02,"youxiachai" notifications@github.com 写道:

@smashinggithttps://github.com/youxiachai/tinker-new-sample-android 4.0.1 应该可以用啊...我觉得4.1.1应该问题不大..

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

4332weizi commented 3 years ago

同问 这个问题怎么解决?什么是能能够兼容 gradle 4.1.1

liupengandroid commented 3 years ago

抱歉没说清楚, AGP升级到4.1.1后编译项目tinker插件就会报错, Could not get unknown property 'manifestOutputDirectory' for task ':android_live:processOnlineDebugManifest' of type com.android.build.gradle.tasks.ProcessMultiApkApplicationManifest. 因为依赖的其他第三方库是用的AGP 4.1.1版本,所以必须要升级,但升级之后tinker就报这个错了

4332weizi commented 3 years ago

去年10月就有这个问题了

youxiachai commented 3 years ago

@4332weizi @liupengandroid 等更新吧,或者自己编一个版本 修复的commit 在这里 https://github.com/Tencent/tinker/commit/be8d0705a5ea5b759fd0704c713318692e9d165b#diff-529248df836deeed065a2f93f7f1b405880f4dfae70a2839560d4977fdbc664f

feer921 commented 3 years ago

https://www.jianshu.com/p/d4c0578fec7d 这个可能能解决