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 似乎不兼容新版 Gradle,请问短时间内能计划修复么? #434

Open mcxinyu opened 4 years ago

mcxinyu commented 4 years ago

robust 似乎不兼容新版 Gradle,请问短时间内能计划修复么?

异常类型:编译异常

手机型号:

手机系统版本:

Robust版本:0.4.99

Gradle版本:AGP:4.1.0 Gradle:6.5

系统:Mac\Windows

堆栈/日志:

Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'task ':app:packageNjfBetaRelease' property 'resourceFiles'' with class 'org.gradle.api.internal.file.DefaultFilePropertyFactory$DefaultDirectoryVar' to class 'java.io.File'
        at robust.gradle.plugin.RobustApkHashAction$_execute_closure1$_closure2.doCall(RobustApkHashAction.groovy:44)
        at org.gradle.api.internal.AbstractTask$ClosureTaskAction.execute(AbstractTask.java:669)
        at org.gradle.api.internal.AbstractTask$ClosureTaskAction.execute(AbstractTask.java:642)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.run(ExecuteActionsTaskExecuter.java:569)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:395)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:387)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:157)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:242)
        at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:150)
...
wutongke commented 4 years ago

@mcxinyu 如果着急的话,可以先用这个 com.wutong.robust:gradle-plugin:0.4.100 先ignore了这个错误

mcxinyu commented 4 years ago

@mcxinyu 如果着急的话,可以先用这个 com.wutong.robust:gradle-plugin:0.4.100 先ignore了这个错误

忽略了会出问题么?毕竟稳定优先。

wutongke commented 4 years ago

@mcxinyu 如果着急的话,可以先用这个 com.wutong.robust:gradle-plugin:0.4.100 先ignore了这个错误

忽略了会出问题么?毕竟稳定优先。

RobustApkHashAction 应该是要生成ApkHash那个文件的,如果你没有用到这个文件的话,就没有影响

217fan commented 4 years ago

com.wutong.robust:gradle-plugin :0.4.100

您好 可以说一下 com.wutong.robust:gradle-plugin:0.4.100 怎么用吗

wutongke commented 4 years ago

com.wutong.robust:gradle-plugin :0.4.100

您好 可以说一下 com.wutong.robust:gradle-plugin:0.4.100 怎么用吗

把之前 com.meituan.robust:gradle-plugin:0.4.99 替换就好了啊

skyofsky commented 3 years ago

classpath "com.android.tools.build:gradle:3.6.4" 这个版本的可以编译

litao0621 commented 3 years ago

使用了ApkHash 有没有更好的方法呢

anson39f commented 1 year ago

image 就屏蔽了RobustApkHashAction类

litao0621 commented 1 year ago

来信已收到,我会尽快回复你的!

Starner commented 1 year ago

@mcxinyu 如果着急的话,可以先用这个 com.wutong.robust:gradle-plugin:0.4.100 先ignore了这个错误

忽略了会出问题么?毕竟稳定优先。

RobustApkHashAction 应该是要生成ApkHash那个文件的,如果你没有用到这个文件的话,就没有影响

麻烦确认下这块基于使用了ApkHash的问题有做修复吗