控制台中文乱码问题:
两次shift按键,输入“vmoption”,
在studio64.exe.vmoption中输入
-Dfile.encoding=UTF-8
保存重启即可
下面是完整的配置,可以提高编译速度:
-Xms512m
-Xmx4096m
-XX:ReservedCodeCacheSize=512m
-XX:+UseG1GC
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:CICompilerCount=2
-Dsun.io.useCanonCaches=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-Djdk.attach.allowAttachSelf=true
-Djdk.module.illegalAccess.silent=true
-Dkotlinx.coroutines.debug=off
-Djna.nosys=true
-Djna.boot.library.path=
-Didea.vendor.name=Google
-Dfile.encoding=UTF-8
Gradle jdk版本设置成 11
当很多资源文件引用飘红,可能是由于编译缓存引起,此时可以将缓存清空重启一下