
升级到AndroidStudio最新的2021.3.1版本之后
会导致Arouter编译失败

Task :app:transformClassesWithCom.alibaba.arouterForDebug FAILED
Execution failed for task ':app:transformClassesWithCom.alibaba.arouterForDebug'.
java.lang.ArrayIndexOutOfBoundsException
- Try:
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
- Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformClassesWithCom.alibaba.arouterForDebug'. - ……
- 解决办法:降低到上一个版本 下载链接:https://r2---sn-j5o7dn7e.gvt1.com/edgedl/android/studio/install/2021.2.1.16/android-studio-2021.2.1.16-windows.exe
升级至Android Studio 2021.3.1版本后,Arouter出现编译失败问题。具体表现为Task 'app:transformClassesWithCom.alibaba.arouterForDebug'执行失败,异常为ArrayIndexOutOfBoundsException。解决方案是回退至2021.2.1.16版本。
4217

被折叠的 条评论
为什么被折叠?



