Android studio4.1更新后出现的问题如下
问题1
> Task : app : kaptDebugKotlin FAILED
FAILURE: Build failed with an exception.
wrong:
Execution failed for task ' :app : kaptDebugKotlin'.
> A failure occurred while executing org. jetbrains . kotlin. gradle . internal . KaptExecution
> java. lang. reflect. InvocationTargetException (no error message)
Run with --stacktrace option to get the stack trace. Run with --info or --debug_ option to get more log output. Run with --scan to get full insights.
Get more help at https://help. gradle .org
莫名其妙 no error message 无从下手,报错信息太少,这时需要打开log输出日志 --stacktrace -info
然后再次运行项目,这时会有log输出,如果里面有乱码,按照如下操作来配置一下
在Android studio的目录下的bin目录下
如 : android-studio\b