zion223 / NeteaseCloudMusic-MVVM

Jetpack MVVM最佳实践 - 重构仿网易云音乐安卓客户端
314 stars 67 forks source link

windows下编译失败,应该是xml布局中大量使用中文拼接造成的 #10

Closed pengfalin closed 3 years ago

pengfalin commented 3 years ago

1.希望作者使用@string的方式拼接字符串 2.可怜一下没有mac的童鞋,

zion223 commented 3 years ago

发一下编译的报错误信息看看

pengfalin commented 3 years ago

报错信息如下

FAILURE: Build failed with an exception.

BUILD FAILED in 11s 150 actionable tasks: 6 executed, 140 from cache, 4 up-to-date

zion223 commented 3 years ago

把 C:\Users\User\AndroidStudio4.0\config 路径下的studio64.exe.vmoptions文件加上-Dfile.encoding=UTF-8 加完了重启下Android Studio就OK了

pengfalin commented 3 years ago

添加了还是报错

zion223 commented 3 years ago

还是同样的报错信息吗

pengfalin commented 3 years ago

对的,我在网上找了一个解决办法现在可以运行了 设置系统环境变量: 变量名:JAVA_TOOL_OPTIONS 变量值:-Dfile.encoding=UTF-8

zion223 commented 3 years ago

嗯嗯