Meituan-Dianping / Robust

Robust is an Android HotFix solution with high compatibility and high stability. Robust can fix bugs immediately without a reboot.
Apache License 2.0
4.43k stars 809 forks source link

Robust support modular application? #463

Open lukaskris opened 3 years ago

lukaskris commented 3 years ago

Hi, i have problem, currently my apps have mutli module

ex: 1 App, login module, home module

i want hotfix at home module, i follow apply autopatchplugin at build.gradle module home and try generate jar and show

Caused by: com.android.builder.errors.EvalIssueException: Transforms with scopes '[SUB_PROJECTS, EXTERNAL_LIBRARIES]' cannot be applied to library projects.

anyone face this issue?

FlyMantou commented 2 years ago

modify source class AutoPatchTransform.groovy`s method getScopes return TransformManager.PROJECT_ONLY, and if your library has other dependence,you should add the jars to classpath