解决办法:AndroidStudio升级到android-studio-2021.3.1.16-windows.exe的坑

解决办法:AndroidStudio升级到android-studio-2021.3.1.16-windows.exe的坑_第1张图片

 升级到AndroidStudio最新的2021.3.1版本之后

会导致Arouter编译失败

解决办法:AndroidStudio升级到android-studio-2021.3.1.16-windows.exe的坑_第2张图片

 

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

你可能感兴趣的