GcsSloop / GcsSloop/AndroidNote
AS Gradle 错误: 编码 GBK 的不可映射字符
Open
- Dominant language
- Java
- Stars
- 9.3k
- Forks
- 2.1k
- PR merge metrics
- No merged PRs in 30d
Description
## 产生原因:
存在中文注释,且编码为utf-8。
## 解决方案:
指定编译字符集为utf-8。
在所在项目之下的build.gradle中添加:
tasks.withType(JavaCompile) { options.encoding = “UTF-8” }
注:由于Gradlev2.2.1的升级,语法不向下兼容。之前解决这个问题的方法是添加:
tasks.withType(Compile) { options.encoding = “UTF-8” }
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.