当前位置:网站首页>: app: transformclasseswithrobustfordevrease meituan hot repair compilation error record

: app: transformclasseswithrobustfordevrease meituan hot repair compilation error record

2022-04-23 18:44:00 KIDD-4869

Preface

If you search “:app:transformClassesWithRobustForDEVRelease”, You may not find the ideal solution , Because this does not indicate the real reason for the error report , But from this sentence, I probably know that robust( Meituan thermal repair ) Something went wrong. , So what's the problem , We have to analyze it in detail . Encounter such problems , It is recommended to copy errors , Enter... In the terminal
gradle :app:transformClassesWithRobustForDEVRelease --stacktrace --info
Check the specific error content .

reason

Enter the above command , You can see that the real error report is
java.lang.RuntimeException: java.io.IOException: invalid constant type: 19 at 5
Search Baidu for this , Just a little eyebrow , Some reprints explain the specific reasons , But the source is still github Medium issues in , For details, see Portal
In short , It's meituan's hot repair framework that hasn't been maintained for too long , As of today , already 13 Not updated in months , For over a year , In the face of so many changes and updates , It's hard to avoid problems .
The students who made this mistake must have been upgraded kotlin To 1.4 above , It's not kotlin The problem of , yes robust An error is reported when the class inserted in the pile is not found .
What big guys do is clone One copy robust Modify the source code locally , Avoid this mistake .
I didn't use , Because I feel some trouble , This is official fix The category of , Instead of maintaining it, the framework is in jeopardy . After all, in the project 1.4 The need for upgrading is not so big , If you can, of course, upgrade the latest kotlin Good version .

Make a brief note to indicate the source of the problem , After all, I searched it myself , If you search directly for such errors , There may be no result , It makes some people confused .

版权声明
本文为[KIDD-4869]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210603464188.html