android stadio 中文无法编译问题

倾雨听笙 发布于 2013/07/25 13:53
阅读 348
收藏 0

最近在研究android stadio,发现自己写的有关中文的类,没法编译,出现如下错误,初步分析是因为字符集编码的问题,但是按照百度上的说法在 bulid.gradule 添加 tasks.withType(Compile) {  options.encoding = "UTF-8"      }  依然无法解决,各位大神请求支援

Gradle:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':TestAndroid:compileDebug'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Could not execute build using Gradle installation 'C:\gradle-1.6'.

加载中
返回顶部
顶部