android studio编译报错

img


cvc-complex-type.2.4.a: 乱码 'base-extension' 乱码 '{layoutlib}' ֮乱码

编辑器的编码方式修改一下。

在android studio中

img

help-->edit VM options打开文件后把下面代码复制进去:

custom Android Studio VM options, see https://developer.android.com/studio/intro/studio-config.html

-Dfile.encoding=UTF-8保存后重启android studio即可