Execution failed for task ':TestAndroid:compileDebug'.
有各种各样原因,具体就请自己进cmd编译看什么地方出错
进入项目的gradle文件所在目录打
gradlew compileDebug --stacktrace
来追踪就可以啦~
昨天编译的时候出现了问题,具体问题具体解决!
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'.
首先进入命令行
进入项目根目录(gradule文件所在目录)
输入命令
gradlew compileDebug --stacktrace
查看错误位置:
错误如下
=================================================================
C:\Users\Administrator\AndroidStudioProjects\TestAndroid\TestAndroid\src\main\ja
va\com\example\testandroid\MainActivity.java:125: 警告:编码 GBK 的不可映射字符
//淇