didi / DRouter

Android Router Framework
Apache License 2.0
745 stars 93 forks source link

编译时出现警告日志 #42

Closed ztaober closed 1 year ago

ztaober commented 2 years ago

【平台环境】:windows 【Android Studio版本】:Android Studio Chipmunk | 2021.2.1 Patch 1 【编译使用Java版本】:jdk11 【kotlin版本】:org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21 【gradle-plugin版本】:com.android.tools.build:gradle:7.1.3 【gradle-wrapper版本】:gradle-7.4-all.zip 【drouter版本】:drouter-api:2.3.1 【复现步骤】:编译时AGP出现上千条警告日志 【期望结果】:不出现警告日志 【日志】:AGPBI: {"kind":"warning","text":"Expected stack map table for method with non-linear control flow.","sources":[{"file":"C:\Users\troy\Repo\xxx\app\build\intermediates\transforms\DRouter\dev\debug\214.jar"}],"tool":"D8"} b4c6a214201d072737cf92b7f2a193c 605908da0be83ccfd92cbe39fd070ff

AlbertZyc commented 2 years ago

FAILURE: Build failed with an exception.

ztaober commented 2 years ago

网上其它插件也遇到类似的问题: https://github.com/didi/DroidAssist/issues/38#issuecomment-1080378515

@weigao123 不过drouter使用的工具是javassist,是否也是类似的问题?

weigao123 commented 2 years ago

这个可以暂时不管,只是警告并不影响实际代码,很多插件都有类似的问题,R8对字节码的校验

hua060097 commented 1 year ago

@ztaober 请教下有因为这个log,导致编译速度变慢吗,我这边minify时间超级长